Skip to content

Instantly share code, notes, and snippets.

@0sc
Last active August 25, 2019 20:37
Show Gist options
  • Save 0sc/9ccb0ec421373d1994e6ae5564c6d04f to your computer and use it in GitHub Desktop.
Save 0sc/9ccb0ec421373d1994e6ae5564c6d04f to your computer and use it in GitHub Desktop.
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