-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 683 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.14-slim
ENV DOCKER_CONTAINER=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
cron \
procps \
&& rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/log && \
touch /var/log/cache-mover.log
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD test -f /var/run/crond.pid && ps -p $(cat /var/run/crond.pid) -o comm= | grep -q '^cron$' || exit 1
CMD ["docker-entrypoint.sh"]