add tinyproxy

This commit is contained in:
newnius 2017-06-13 14:19:22 +08:00
parent 87825e5768
commit 3eea052f47
3 changed files with 21 additions and 0 deletions

7
tinyproxy/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:latest
ADD bootstrap.sh /etc/bootstrap.sh
RUN apk add --no-cache tinyproxy
ENTRYPOINT ["/etc/bootstrap.sh"]

8
tinyproxy/README.md Normal file
View File

@ -0,0 +1,8 @@
https://github.com/tinyproxy/tinyproxy
docker service create \
--name tinyproxy \
--publish mode=host,published=8888,target=8888 \
--mount type=bind,source=/mnt/data/tinyproxy,target=/etc/tinyproxy \
newnius/tinyproxy

6
tinyproxy/bootstrap.sh Executable file
View File

@ -0,0 +1,6 @@
#! /bin/sh
tinyproxy start
# do nothing, just wait
while true; do sleep 1000; done