mirror of
https://github.com/jung-geun/DynamicDNS-SSL.git
synced 2025-12-19 20:44:40 +09:00
Initial commit
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Install required packages
|
||||
RUN apt-get update && apt-get install -y \
|
||||
cron \
|
||||
make \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p /app/cloudflare-ddns/
|
||||
WORKDIR /app/cloudflare-ddns
|
||||
RUN mkdir -p /app/cloudflare-ddns/config
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN cp /app/cloudflare-ddns/cron/cronjob /etc/cron.d/cloudflare-ddns
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
RUN chmod +x /app/cloudflare-ddns/start.sh
|
||||
RUN chmod +x /app/cloudflare-ddns/run_script.sh
|
||||
|
||||
VOLUME [ "/app/cloudflare-ddns/config" ]
|
||||
|
||||
ENTRYPOINT [ "bash", "-c" ]
|
||||
|
||||
CMD [ "/app/cloudflare-ddns/start.sh && cron -f" ]
|
||||
Reference in New Issue
Block a user