From 9422147bebe85f9fa9ec29964cdd49d6ba0acc6a Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 11 Feb 2022 11:47:17 +0100 Subject: [PATCH] Make the dockerfile work on Openshift For various reason, /explorer is created with Docker, and not on podman (see https://github.com/containers/podman/issues/11842) The easiest fix is to use a existing directory (rather than wrangling with podman/docker difference) And the current sourcecode need to be copied, which is not done by default as far as I know. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 612893f5..3e6ace76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM python:3.8.12-bullseye # include your own label. Example below. #LABEL James Kunstle EXPOSE 8050 -WORKDIR /explorer -COPY ./requirements.txt /explorer -RUN pip3 install -r /explorer/requirements.txt +WORKDIR /srv +COPY requirements.txt /srv +RUN pip3 install -r requirements.txt +COPY . /srv CMD python3 index.py