Skip to content

Instantly share code, notes, and snippets.

@luizpaulogodoy
Created August 15, 2018 20:05
Show Gist options
  • Save luizpaulogodoy/824c72fea402e8f179829cc3ac039195 to your computer and use it in GitHub Desktop.
Save luizpaulogodoy/824c72fea402e8f179829cc3ac039195 to your computer and use it in GitHub Desktop.
##############################################################################
## Development Dockerfile for Golang Applications ##
##############################################################################
# Start from a Debian image with the 1.9.2 version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang:latest
# Create Working Directory
RUN mkdir -p /go/src/github.com/luizpaulogodoy/app-service
WORKDIR /go/src/github.com/luizpaulogodoy/app-service
RUN go get github.com/cortesi/modd/cmd/modd
COPY modd.conf /go/src/github.com/luizpaulogodoy/app-service
# Run start script
# CMD ./app
CMD modd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment