Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit dc21312

Browse files
authored
chore: fix vulnerability advisor findings (#50)
* chore: fix vulnerability advisor findings * fix: use python3 exec
1 parent 3a220a6 commit dc21312

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
FROM registry.access.redhat.com/ubi8/python-36
1+
FROM registry.access.redhat.com/ubi8
22

33
WORKDIR /app
44

55
COPY Pipfile* /app/
66

77
## NOTE - rhel enforces user container permissions stronger ##
88
USER root
9-
RUN yum install python3-pip wget
9+
RUN yum -y install python3
10+
RUN yum -y install python3-pip wget
1011

11-
RUN pip install --upgrade pip \
12-
&& pip install --upgrade pipenv\
12+
RUN pip3 install --upgrade pip \
13+
&& pip3 install --upgrade pipenv \
1314
&& pipenv install --system --deploy
1415

1516
USER 1001
1617

1718
COPY . /app
1819
ENV FLASK_APP=server/__init__.py
19-
CMD ["python", "manage.py", "start", "0.0.0.0:3000"]
20+
CMD ["python3", "manage.py", "start", "0.0.0.0:3000"]

0 commit comments

Comments
 (0)