Last active
August 25, 2019 20:37
-
-
Save 0sc/9ccb0ec421373d1994e6ae5564c6d04f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.12-stretch AS builder | |
WORKDIR $GOPATH/pinger | |
COPY . . | |
RUN go build -o app . | |
FROM ubuntu:bionic | |
COPY --from=builder /go/pinger/app / | |
ENV PORT=8000 | |
EXPOSE $PORT | |
CMD [ "/app" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment