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 b869d7e commit 515757e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ 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 @@ -17,6 +14,9 @@ FROM python:3.9-slim as runner
WORKDIR /app/
COPY --from=compiler /opt/venv /opt/venv

# install cron daemon
RUN apt update; apt install cron libterm-readline-gnu-perl -y; apt -yq autoremove; apt clean

# Enable venv
ENV PATH="/opt/venv/bin:$PATH"
COPY ./scripts /app/
Expand Down

0 comments on commit 515757e

Please sign in to comment.