Fix deploying with Docker

This commit is contained in:
James Mills 2017-02-12 21:50:42 -08:00
parent 18c3ae98e1
commit 5706c8afa4
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 20 additions and 2 deletions

View File

@ -2,4 +2,17 @@ FROM golang:alpine
EXPOSE 80/tcp
ENTRYPOINT ["/gopherproxy"]
ENTRYPOINT ["gopherproxy"]
CMD []
RUN \
apk add --update git && \
rm -rf /var/cache/apk/*
RUN mkdir -p /go/src/github.com/prologic/gopherproxy
WORKDIR /go/src/github.com/prologic/gopherproxy
COPY . /go/src/github.com/prologic/gopherproxy
RUN go get -v -d
RUN go install -v github.com/prologic/gopherproxy/...

View File

@ -13,7 +13,12 @@ gopherproxy is written in Go (#golang) using the
## Installation
$ go install github.com/prologic/gopherproxy
$ go install github.com/prologic/gopherproxy/...
### Docker
$ docker build -t gopherproxy .
$ docker run -p 80:80 gopherproxy -uri floodgap.com
## Usage