From c978f8d859a03b61c5744a71750f95e256c169ba Mon Sep 17 00:00:00 2001 From: YustinaKvr Date: Wed, 18 Sep 2024 13:55:52 +0200 Subject: [PATCH] dockerfile --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1e80659..6720cd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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