Last active
April 18, 2016 20:40
-
-
Save vjm/6bf457198b150dcef66690d2fda4770d 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
version: '2' | |
services: | |
server: | |
restart: always | |
build: . | |
ports: | |
- 80:80 |
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
# Start from a Debian image with the latest version of Go installed | |
# and a workspace (GOPATH) configured at /go. | |
FROM golang | |
# Copy the local package files to the container's workspace. | |
ADD server2 /server2 | |
RUN chmod +x /server2 | |
# Build the outyet command inside the container. | |
# (You may fetch or manage dependencies here, | |
# either manually or with a tool like "godep".) | |
# RUN go install github.com/golang/example/outyet | |
# Run the outyet command by default when the container starts. | |
ENTRYPOINT /server2 | |
# Document that the service listens on port 8080. | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment