Skip to content

Commit

Permalink
Move Dockerfile to be from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
film42 committed Oct 6, 2018
1 parent 1ebfcbf commit 1c68312
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM golang:1.11-alpine
FROM golang:1.11-alpine as builder
ADD . /turbulence
WORKDIR /turbulence
ENV GOPATH /turbulence
RUN go build
ENTRYPOINT ["/turbulence/turbulence"]
RUN CGO_ENABLED=0 go build

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /turbulence/turbulence /
ENTRYPOINT ["/turbulence"]

0 comments on commit 1c68312

Please sign in to comment.