mirror of
https://github.com/michivonah/adguard-ddns-client.git
synced 2025-12-22 22:26:28 +01:00
create docker image
This commit is contained in:
parent
ff4eab2be2
commit
adc93298eb
1 changed files with 26 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# AdGuard Home - Add DDNS IP as allowed client - Docker Container
|
||||||
|
# Michi von Ah - January 2024
|
||||||
|
|
||||||
|
FROM python:3.12
|
||||||
|
|
||||||
|
# Create directory
|
||||||
|
RUN mkdir app
|
||||||
|
WORKDIR /app/
|
||||||
|
|
||||||
|
# Copy files
|
||||||
|
COPY main.py .
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Set enviromental variables
|
||||||
|
ENV API_BASE_URL "https://example.com"
|
||||||
|
ENV API_USERNAME "YOUR_USERNAME"
|
||||||
|
ENV API_PASSWORD "YOUR_PASSWORD"
|
||||||
|
ENV DOMAIN_NAME "example.com"
|
||||||
|
|
||||||
|
# Install needed packages
|
||||||
|
RUN pip3 install --upgrade pip
|
||||||
|
RUN pip3 install pipenv
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Run script
|
||||||
|
CMD ["python3","main.py"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue