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 . .

View File

View File

8
docker-compose.yaml Normal file
View File

@ -0,0 +1,8 @@
## Development docker-compose
version: "3.7"
services:
cloudflare-ddns:
build:
context: .
dockerfile: Dockerfile
container_name: cloudflare-ddns

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
requests~=2.25.1
click8~=8.0.1