mirror of
https://github.com/iv-org/smart-ipv6-rotator.git
synced 2024-11-22 21:49:43 +00:00
Add a Dockerfile (#4)
This commit is contained in:
parent
61c019c2b1
commit
e31a7b8f70
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@ -0,0 +1,9 @@
|
||||
config.py
|
||||
__pycache__
|
||||
|
||||
.*
|
||||
|
||||
Dockerfile
|
||||
LICENSE
|
||||
|
||||
*.md
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
config.py
|
||||
__pycache__
|
||||
__pycache__
|
||||
|
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
pyroute2
|
||||
requests
|
Loading…
Reference in New Issue
Block a user