From dc21312bd3eafa7270912c6cad5ee761930958a4 Mon Sep 17 00:00:00 2001 From: Gabriel Valencia Date: Wed, 11 Mar 2020 17:52:37 -0500 Subject: [PATCH] chore: fix vulnerability advisor findings (#50) * chore: fix vulnerability advisor findings * fix: use python3 exec --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 766ab5d..75ab17e 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi8/python-36 +FROM registry.access.redhat.com/ubi8 WORKDIR /app @@ -6,14 +6,15 @@ COPY Pipfile* /app/ ## NOTE - rhel enforces user container permissions stronger ## USER root -RUN yum install python3-pip wget +RUN yum -y install python3 +RUN yum -y install python3-pip wget -RUN pip install --upgrade pip \ - && pip install --upgrade pipenv\ +RUN pip3 install --upgrade pip \ + && pip3 install --upgrade pipenv \ && pipenv install --system --deploy USER 1001 COPY . /app ENV FLASK_APP=server/__init__.py -CMD ["python", "manage.py", "start", "0.0.0.0:3000"] +CMD ["python3", "manage.py", "start", "0.0.0.0:3000"]