diff options
author | James Mills <prologic@shortcircuit.net.au> | 2017-02-12 21:50:42 -0800 |
---|---|---|
committer | James Mills <prologic@shortcircuit.net.au> | 2017-02-12 21:50:42 -0800 |
commit | 5706c8afa4d5b6f5c0a55b920165ba4327b9373b (patch) | |
tree | d8b86ed79f0357d7c2baa4f987b20946f7f2ddee /Dockerfile | |
parent | Updated README with badges (diff) | |
download | gopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.tar.gz gopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.tar.bz2 gopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.zip |
Fix deploying with Docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -2,4 +2,17 @@ FROM golang:alpine | |||
2 | 2 | ||
3 | EXPOSE 80/tcp | 3 | EXPOSE 80/tcp |
4 | 4 | ||
5 | ENTRYPOINT ["/gopherproxy"] | 5 | ENTRYPOINT ["gopherproxy"] |
6 | CMD [] | ||
7 | |||
8 | RUN \ | ||
9 | apk add --update git && \ | ||
10 | rm -rf /var/cache/apk/* | ||
11 | |||
12 | RUN mkdir -p /go/src/github.com/prologic/gopherproxy | ||
13 | WORKDIR /go/src/github.com/prologic/gopherproxy | ||
14 | |||
15 | COPY . /go/src/github.com/prologic/gopherproxy | ||
16 | |||
17 | RUN go get -v -d | ||
18 | RUN go install -v github.com/prologic/gopherproxy/... | ||