Last active
March 2, 2018 12:15
-
-
Save mkamakura/d6c238d00d9526917d1491149fc59d94 to your computer and use it in GitHub Desktop.
Golang(API Server) Local Environment
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
FROM golang:1.9.4-alpine | |
RUN apk update \ | |
&& apk upgrade \ | |
&& apk add --no-cache bash git openssh curl coreutils | |
RUN go get github.com/golang/dep/cmd/dep | |
RUN go get github.com/codegangsta/gin | |
RUN mkdir -p /go/src/github.com/mkamakura/myProject/backend | |
EXPOSE 4000 | |
EXPOSE 4001 | |
WORKDIR /go/src/github.com/mkamakura/myProject/backend | |
CMD bash -c "dep ensure && gin -a 4001 -p 4000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose.yml