Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomoscardini01 authored Jan 3, 2025
1 parent 4fc1aee commit 3caa212
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ ENV PYTHONUNBUFFERED 1

WORKDIR /app/

# install cron daemon
RUN apt update && apt install cron -y && apt -yq autoremove ; apt clean

RUN python -m venv /opt/venv
# Enable venv
ENV PATH="/opt/venv/bin:$PATH"
Expand All @@ -18,4 +21,4 @@ COPY --from=compiler /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
COPY ./scripts /app/

ENTRYPOINT ["tail", "-f", "/dev/null"]
ENTRYPOINT ["/usr/sbin/cron", "-f", "-l", "15"]

0 comments on commit 3caa212

Please sign in to comment.