Compare commits

..

No commits in common. "docker" and "master" have entirely different histories.

4 changed files with 0 additions and 35 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
build

View File

@ -1,8 +0,0 @@
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /
COPY build/lim /bin/
CMD ["/bin/sh", "-c", "cat /dev/urandom | /bin/lim 16b | xxd"]

View File

@ -1,7 +0,0 @@
FROM golang:1.10.1
WORKDIR /go/src/mcquay.me/lim
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/lim .

View File

@ -1,19 +0,0 @@
GOFILES := $(shell find . -type f | grep go$$ )
build/lim: build ${GOFILES}
@docker build -t smcquay/lim:build . -f Dockerfile.build > /dev/null
@docker create --name ext smcquay/lim:build > /dev/null
@docker cp ext:/usr/local/bin/lim build/ > /dev/null
@docker rm -f ext > /dev/null
@docker image rm smcquay/lim:build > /dev/null
build:
@mkdir build
.PHONY: docker-image
docker-image: build/lim
@docker build --no-cache -t smcquay/lim:latest . > /dev/null
.PHONY: clean
clean:
@rm -rf build