2021-10-29 23:02:05 +00:00
|
|
|
|
FROM python:3.10-alpine as base
|
2018-12-22 15:08:04 +00:00
|
|
|
|
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
|
2021-11-25 14:58:26 +00:00
|
|
|
|
com.abhinavsingh.description="⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
|
|
|
|
|
😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • \
|
|
|
|
|
👮🏿 \"Proxy Server\" framework • 🌐 \"Web Server\" framework • ➵ ➶ ➷ ➠ \"PubSub\" framework • \
|
|
|
|
|
👷 \"Work\" acceptor & executor framework" \
|
|
|
|
|
com.abhinavsingh.url="https://github.com/abhinavsingh/proxy.py" \
|
|
|
|
|
com.abhinavsingh.vcs-url="https://github.com/abhinavsingh/proxy.py" \
|
|
|
|
|
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py"
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
ARG PROXYPY_PKG_PATH
|
2018-12-22 15:08:04 +00:00
|
|
|
|
|
2021-11-25 14:58:26 +00:00
|
|
|
|
COPY README.md /
|
|
|
|
|
COPY $PROXYPY_PKG_PATH /
|
|
|
|
|
RUN pip install --upgrade pip && \
|
|
|
|
|
pip install \
|
|
|
|
|
--no-index \
|
|
|
|
|
--find-links file:/// \
|
|
|
|
|
proxy.py && \
|
|
|
|
|
rm *.whl
|
2019-10-30 03:41:39 +00:00
|
|
|
|
|
2021-11-25 14:58:26 +00:00
|
|
|
|
# Install openssl to enable TLS interception & HTTPS proxy options within container
|
|
|
|
|
# NOTE: You can comment out this line if you don't intend to use those features.
|
2020-06-17 12:24:43 +00:00
|
|
|
|
RUN apk update && apk add openssl
|
|
|
|
|
|
2019-10-10 22:15:27 +00:00
|
|
|
|
EXPOSE 8899/tcp
|
2019-10-30 03:41:39 +00:00
|
|
|
|
ENTRYPOINT [ "proxy" ]
|
2019-11-15 22:47:50 +00:00
|
|
|
|
CMD [ "--hostname=0.0.0.0" ]
|