Skip to content

Instantly share code, notes, and snippets.

@dlsniper
Last active June 18, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlsniper/187480db2315ff882de1eb07e5b00946 to your computer and use it in GitHub Desktop.
Save dlsniper/187480db2315ff882de1eb07e5b00946 to your computer and use it in GitHub Desktop.
Dockerfile to build the webinar example
# build stage
FROM golang:1.8.3 AS build-env
ADD . /go/src/github.com/dlsniper/webinar
RUN go build -o /webinar github.com/dlsniper/webinar
# final stage
FROM ubuntu:16.04
WORKDIR /
COPY --from=build-env /webinar /
EXPOSE 8000
CMD ["/webinar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment