Skip to content

Instantly share code, notes, and snippets.

@shijuvar
Created December 17, 2014 04:11
Show Gist options
  • Select an option

  • Save shijuvar/b4f3bd5c6905116a6281 to your computer and use it in GitHub Desktop.

Select an option

Save shijuvar/b4f3bd5c6905116a6281 to your computer and use it in GitHub Desktop.
Docker file for a Go app
# golang image where workspace (GOPATH) configured at /go.
FROM golang:latest
# Copy the local package files to the container’s workspace.
ADD . /go/src/github.com/shijuvar/golang-docker
# Build the golang-docker command inside the container.
RUN go install github.com/shijuvar/golang-docker
# Run the golang-docker command when the container starts.
ENTRYPOINT /go/bin/golang-docker
# http server listens on port 8080.
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment