-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a Dockerfile and Docker specific run instructions
- Loading branch information
shawn hartsell
committed
Dec 22, 2016
1 parent
ff67ae1
commit acdfbdc
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*/.vscode/* | ||
*/bin/* | ||
*/pkg/**/* | ||
*/.env | ||
*/.gitignore | ||
*/vendor/pkg/**/* | ||
Dockerfile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.8 | ||
|
||
#install gb | ||
RUN go get github.com/constabulary/gb/... && \ | ||
go install github.com/constabulary/gb | ||
|
||
#build the project and start the server | ||
COPY ./src /app/src | ||
COPY ./vendor /app/vendor | ||
|
||
WORKDIR /app | ||
RUN gb build | ||
ENV GIN_MODE=release | ||
CMD ["bin/cowpoke"] | ||
|
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
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