Add a Dockerfile (#4)

This commit is contained in:
Kavin 2023-10-25 20:30:16 +01:00 committed by GitHub
parent 61c019c2b1
commit e31a7b8f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 1 deletions

9
.dockerignore Normal file
View File

@ -0,0 +1,9 @@
config.py
__pycache__
.*
Dockerfile
LICENSE
*.md

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3-slim
WORKDIR /app/
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
COPY . .
ENTRYPOINT ["python", "/app/smart-ipv6-rotator.py"]

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
pyroute2
requests