aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2017-02-12 21:50:42 -0800
committerJames Mills <prologic@shortcircuit.net.au>2017-02-12 21:50:42 -0800
commit5706c8afa4d5b6f5c0a55b920165ba4327b9373b (patch)
treed8b86ed79f0357d7c2baa4f987b20946f7f2ddee
parentUpdated README with badges (diff)
downloadgopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.tar.gz
gopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.tar.bz2
gopherproxy-5706c8afa4d5b6f5c0a55b920165ba4327b9373b.zip
Fix deploying with Docker
-rw-r--r--Dockerfile15
-rw-r--r--README.md7
2 files changed, 20 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 1dad4b6..bf5cab6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,4 +2,17 @@ FROM golang:alpine
2 2
3EXPOSE 80/tcp 3EXPOSE 80/tcp
4 4
5ENTRYPOINT ["/gopherproxy"] 5ENTRYPOINT ["gopherproxy"]
6CMD []
7
8RUN \
9 apk add --update git && \
10 rm -rf /var/cache/apk/*
11
12RUN mkdir -p /go/src/github.com/prologic/gopherproxy
13WORKDIR /go/src/github.com/prologic/gopherproxy
14
15COPY . /go/src/github.com/prologic/gopherproxy
16
17RUN go get -v -d
18RUN go install -v github.com/prologic/gopherproxy/...
diff --git a/README.md b/README.md
index 9d6609f..c5cf84d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,12 @@ gopherproxy is written in Go (#golang) using the
13 13
14## Installation 14## Installation
15 15
16 $ go install github.com/prologic/gopherproxy 16 $ go install github.com/prologic/gopherproxy/...
17
18### Docker
19
20 $ docker build -t gopherproxy .
21 $ docker run -p 80:80 gopherproxy -uri floodgap.com
17 22
18## Usage 23## Usage
19 24