22 lines
522 B
Docker
22 lines
522 B
Docker
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"]
|