mirror of
https://github.com/atoy3731/adguard-sync.git
synced 2024-09-20 15:06:02 +08:00
18 lines
377 B
Docker
18 lines
377 B
Docker
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
|
|
|
|
COPY src/app.py /opt/app.py
|
|
|
|
ENTRYPOINT ["python3"]
|
|
CMD ["/opt/app.py"]
|
|
|