Files
traefik-whoami/Dockerfile
2019-01-09 23:58:52 +01:00

11 lines
217 B
Docker

FROM golang:1.11 as builder
WORKDIR /go/whoami
COPY . .
RUN make build
# Create a minimal container to run a Golang static binary
FROM scratch
COPY --from=builder /go/whoami/whoami .
ENTRYPOINT ["/whoami"]
EXPOSE 80