Skip to content

Commit 35dfaed

Browse files
committed
fix dockerfile
1 parent c26762c commit 35dfaed

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ FROM registry.access.redhat.com/ubi9/python-311:1-72.1724040033
22

33
WORKDIR /app
44

5-
COPY --chown=1001:0 . .
6-
7-
USER 1001
5+
COPY --chown=1001:0 requirements.txt .
86

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

11-
CMD find . -name "*.py" -exec python {} \; && sleep 60
9+
COPY --chown=1001:0 $(find . -name "*.py") ./
10+
11+
USER 1001
12+
13+
CMD sleep 60

0 commit comments

Comments
 (0)