Initial commit
This commit is contained in:
21
updater/Dockerfile
Normal file
21
updater/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends cron tzdata ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --no-cache-dir requests beautifulsoup4 lxml
|
||||
|
||||
WORKDIR /app
|
||||
COPY update.py /app/update.py
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
COPY crontab /etc/cron.d/igmg-ics
|
||||
|
||||
RUN chmod +x /app/entrypoint.sh \
|
||||
&& chmod 0644 /etc/cron.d/igmg-ics \
|
||||
&& crontab /etc/cron.d/igmg-ics
|
||||
|
||||
CMD ["/app/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user