2018-12-22 15:08:04 +00:00
|
|
|
FROM python:3-alpine
|
|
|
|
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
|
2019-10-10 07:03:17 +00:00
|
|
|
com.abhinavsingh.description="⚡⚡⚡ Fast, Lightweight, Programmable Proxy Server in a single Python file" \
|
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-10 22:15:27 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
|
|
COPY proxy.py .
|
2019-10-10 07:03:17 +00:00
|
|
|
|
2019-10-10 22:15:27 +00:00
|
|
|
RUN pip install --upgrade pip && pip install -r requirements.txt
|
2018-12-22 15:08:04 +00:00
|
|
|
|
2019-10-10 22:15:27 +00:00
|
|
|
EXPOSE 8899/tcp
|
2018-12-22 15:08:04 +00:00
|
|
|
ENTRYPOINT [ "./proxy.py" ]
|
2019-09-23 07:30:52 +00:00
|
|
|
CMD [ "--hostname=0.0.0.0", \
|
2019-09-25 02:02:57 +00:00
|
|
|
"--port=8899" ]
|