short/Dockerfile
2019-04-15 10:45:46 +02:00

17 lines
277 B
Docker

FROM golang:1.12.4 as builder
ENV CGO_ENABLED=0
ADD main.go /go/src/short/
WORKDIR /go/src/short
RUN go get ./... && go build -o short .
FROM scratch
LABEL maintainer="Thomas Andrade <wolvie@gmail.com>"
COPY --from=builder /go/src/short/short /
ENTRYPOINT [ "/short" ]