mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 08:31:55 +00:00
add tinyproxy
This commit is contained in:
parent
87825e5768
commit
3eea052f47
7
tinyproxy/Dockerfile
Normal file
7
tinyproxy/Dockerfile
Normal 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
8
tinyproxy/README.md
Normal 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
6
tinyproxy/bootstrap.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
tinyproxy start
|
||||||
|
|
||||||
|
# do nothing, just wait
|
||||||
|
while true; do sleep 1000; done
|
Loading…
Reference in New Issue
Block a user