Skip to content

Commit 60d7dcb

Browse files
committed
Dockerfile
1 parent f7df861 commit 60d7dcb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ src/code.google.com/
99
*.key
1010
*.crt
1111
.env
12+
*.pem

Dockefile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM golang:1.5.2
2+
3+
RUN go get github.com/tools/godep
4+
5+
ADD . /go/src/github.com/darkhelmet/ForrestFire
6+
WORKDIR /go/src/github.com/darkhelmet/ForrestFire
7+
RUN rm -rf Godeps/_workspace/bin Godeps/_workspace/pkg
8+
9+
RUN godep go install ./...
10+
11+
ENV PATH /go/src/github.com/darkhelmet/ForrestFire/Godeps/_workspace/bin:$PATH
12+
ENV GOPATH /go/src/github.com/darkhelmet/ForrestFire/Godeps/_workspace:$GOPATH
13+
14+
ENV PORT 80
15+
EXPOSE 80
16+
17+
CMD /go/src/github.com/darkhelmet/ForrestFire/bin/ForrestFire

0 commit comments

Comments
 (0)