forked from abhinavsingh/proxy.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3-alpine
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
com.abhinavsingh.description="Lightweight HTTP, HTTPS, WebSockets Proxy Server in a single Python file" \
# com.abhinavsingh.build-date="" \
com.abhinavsingh.url="https://github.com/abhinavsingh/proxy.py" \
com.abhinavsingh.vcs-url="https://github.com/abhinavsingh/proxy.py" \
# com.abhinavsingh.vcs-ref="" \
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py"
COPY proxy.py /app/
EXPOSE 8899/tcp
WORKDIR /app
ENTRYPOINT [ "./proxy.py" ]
CMD [ "--host=0.0.0.0", \
"--port=8899", \
"--backlog=100", \
"--server-recvbuf-size=8192", \
"--client-recvbuf-size=8192", \
"--open-file-limit=1024", \
"--log-level=INFO" ]