Skip to content

Commit

Permalink
Make the dockerfile work on Openshift
Browse files Browse the repository at this point in the history
For various reason, /explorer is created with Docker, and not
on podman (see containers/podman#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.
  • Loading branch information
mscherer committed Feb 11, 2022
1 parent ac171b0 commit 9422147
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM python:3.8.12-bullseye
# include your own label. Example below.
#LABEL James Kunstle <[email protected]>
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

0 comments on commit 9422147

Please sign in to comment.