18 lines
317 B
Docker
18 lines
317 B
Docker
FROM python:3.9-slim-bookworm
|
|
|
|
# Install cron
|
|
RUN apt-get update && apt-get -y install cron
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Make entrypoint script executable
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
# Set the entrypoint
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|