Add docker setup

This commit is contained in:
Matteo Bertucci
2021-01-14 09:40:35 +01:00
parent e5fd39c2b0
commit 3fd070021e
5 changed files with 22 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3.9-slim
WORKDIR /app
ENTRYPOINT ["python3", "-m", "cloudflare-ddns"]
CMD []
# Install requirements in a separate step to not rebuild everything when the requirements are updated.
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .