Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
FROM registry.access.redhat.com/ubi8/python-36
FROM registry.access.redhat.com/ubi8

WORKDIR /app

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"]