Add README and update entrypoint to force listen port

This commit is contained in:
Tony Blyler 2017-06-20 17:55:35 -04:00
parent caeec7cfaa
commit 1f00a43dbe
2 changed files with 18 additions and 2 deletions

View file

@ -22,5 +22,4 @@ RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk
EXPOSE 8086
ENTRYPOINT ["./huproxy"]
CMD ["-listen", ":8086"]
ENTRYPOINT ["./huproxy", "-listen", ":8086"]

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# HUProxy
A [Docker image](https://www.docker.com/) for [HUProxy](https://github.com/google/huproxy).
## Usage
```
docker run -d -p 8086:8086 tblyler/huproxy
```
You can then use port `8086` for your web proxy. For configuration see [HUProxy's GitHub](https://github.com/google/huproxy).
To run with different options...
> -listen :8086 is part of the ENTRYPOINT
```
docker run -d -p 8086:8086 tblyler/huproxy -dial_timeout 30s -write_timeout 30s -handshake_timeout 30s
```