2019-12-02 07:06:50 +00:00
|
|
|
FROM python:3.8-alpine as base
|
2019-10-11 18:03:51 +00:00
|
|
|
FROM base as builder
|
|
|
|
|
2019-10-30 03:41:39 +00:00
|
|
|
COPY requirements.txt /app/
|
|
|
|
COPY setup.py /app/
|
|
|
|
COPY README.md /app/
|
|
|
|
COPY proxy/ /app/proxy/
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install --upgrade pip && \
|
|
|
|
pip install --install-option="--prefix=/deps" .
|
2019-10-11 18:03:51 +00:00
|
|
|
|
|
|
|
FROM base
|
|
|
|
|
2018-12-22 15:08:04 +00:00
|
|
|
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
|
2019-12-02 07:06:50 +00:00
|
|
|
com.abhinavsingh.description="⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on \
|
|
|
|
Network monitoring, controls & Application development, testing, debugging." \
|
2018-12-22 15:08:04 +00:00
|
|
|
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"
|
|
|
|
|
2019-10-11 18:03:51 +00:00
|
|
|
COPY --from=builder /deps /usr/local
|
2019-10-30 03:41:39 +00:00
|
|
|
|
2020-06-17 12:24:43 +00:00
|
|
|
# Install openssl to enable TLS interception within container
|
|
|
|
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" ]
|