Skip to content

Instantly share code, notes, and snippets.

@gwthm-in
Last active March 19, 2019 18:08
Show Gist options
  • Save gwthm-in/1b0189cabbe730114c54c84b40834b2e to your computer and use it in GitHub Desktop.
Save gwthm-in/1b0189cabbe730114c54c84b40834b2e to your computer and use it in GitHub Desktop.
Docker file to build price estimator
FROM golang:1.11.5-alpine
RUN mkdir /estimate
ADD . /estimate
WORKDIR /estimate
RUN go build main.go
FROM alpine:latest
COPY --from=base /estimate/main /usr/local/bin/estimator
ENTRYPOINT ["estimator"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment