Skip to content

Commit

Permalink
remove --no-dev option
Browse files Browse the repository at this point in the history
  • Loading branch information
flashguerdon committed Feb 10, 2025
1 parent af4e4c5 commit aed75d3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ FROM quay.io/cdis/python:python3.9-buster-2.0.0

ENV appname=fence

ARG COMMIT_HASH
ARG VERSION_TAG

RUN pip install --upgrade pip
RUN pip install --upgrade poetry
RUN apt-get update \
Expand Down Expand Up @@ -34,7 +37,7 @@ WORKDIR /$appname
# this will make sure than the dependencies is cached
COPY poetry.lock pyproject.toml /$appname/
RUN poetry config virtualenvs.create false \
&& poetry install -vv --no-root --no-dev --no-interaction \
&& poetry install -vv --no-root --no-interaction \
&& poetry show -v

# copy source code ONLY after installing dependencies
Expand All @@ -45,11 +48,11 @@ COPY clear_prometheus_multiproc /$appname/clear_prometheus_multiproc

# install fence
RUN poetry config virtualenvs.create false \
&& poetry install -vv --no-dev --no-interaction \
&& poetry install -vv --no-root --no-interaction \
&& poetry show -v

RUN COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" >$appname/version_data.py \
&& VERSION=`git describe --always --tags` && echo "VERSION=\"${VERSION}\"" >>$appname/version_data.py
RUN COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT_HASH}\"" >$appname/version_data.py \
&& VERSION=`git describe --always --tags` && echo "VERSION=\"${VERSION_TAG}\"" >>$appname/version_data.py

WORKDIR /var/www/$appname

Expand Down

0 comments on commit aed75d3

Please sign in to comment.