adguard-sync/Dockerfile

16 lines
375 B
Text
Raw Normal View History

2021-02-01 01:46:48 +08:00
FROM alpine:3.13
RUN apk update && \
apk add python3 curl && \
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python3 && \
apk del curl
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
2021-02-01 01:54:33 +08:00
COPY src/app.py /opt/app.py
2021-02-01 01:46:48 +08:00
CMD [ '/usr/bin/python3', '/opt/app.py' ]