Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ptichoid committed Sep 18, 2024
1 parent 35dfaed commit c978f8d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ FROM registry.access.redhat.com/ubi9/python-311:1-72.1724040033

WORKDIR /app

COPY --chown=1001:0 requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY --chown=1001:0 $(find . -name "*.py") ./
COPY --chown=1001:0 . .

USER 1001

CMD sleep 60
RUN pip install --no-cache-dir -r requirements.txt

CMD find . -name "*.py" -exec python {} \; && sleep 60

0 comments on commit c978f8d

Please sign in to comment.