diff --git a/tinyproxy/Dockerfile b/tinyproxy/Dockerfile new file mode 100644 index 0000000..9dc1e7e --- /dev/null +++ b/tinyproxy/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest + +ADD bootstrap.sh /etc/bootstrap.sh + +RUN apk add --no-cache tinyproxy + +ENTRYPOINT ["/etc/bootstrap.sh"] diff --git a/tinyproxy/README.md b/tinyproxy/README.md new file mode 100644 index 0000000..eda4294 --- /dev/null +++ b/tinyproxy/README.md @@ -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 diff --git a/tinyproxy/bootstrap.sh b/tinyproxy/bootstrap.sh new file mode 100755 index 0000000..d7d855b --- /dev/null +++ b/tinyproxy/bootstrap.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +tinyproxy start + +# do nothing, just wait +while true; do sleep 1000; done