17 lines
536 B
Docker
17 lines
536 B
Docker
FROM python:3.13-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates tzdata curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# supercronic
|
|
RUN curl -fsSL -o /usr/local/bin/supercronic \
|
|
https://github.com/aptible/supercronic/releases/download/v0.2.30/supercronic-linux-amd64 \
|
|
&& chmod +x /usr/local/bin/supercronic
|
|
|
|
WORKDIR /app
|
|
COPY tools/puzzle-gen/generate_daily_puzzles.py /app/generate_daily_puzzles.py
|
|
COPY tools/puzzle-gen/crontab /app/crontab
|
|
|
|
CMD ["/usr/local/bin/supercronic", "/app/crontab"]
|