17 lines
360 B
Docker
Executable File
17 lines
360 B
Docker
Executable File
FROM python:3.10-slim-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src/ ./src/
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
# Install cron
|
|
RUN apt-get update && apt-get install -y cron procps dash
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
CMD ["cron", "-f"]
|