Skip to content

Commit

Permalink
Merge 2689718 into 67d787c
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Nov 17, 2021
2 parents 67d787c + 2689718 commit ec1518b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2

WORKDIR /$appname

# copy ONLY poetry artifact and install
# this will make sure than the dependencies is cached
COPY poetry.lock pyproject.toml /$appname/
# copy ONLY poetry artifact
# this will make sure that the dependencies are cached
COPY poetry.lock pyproject.toml bin /$appname/
# include files referred to in `tool.poetry.scripts`
COPY bin/ /$appname/bin/
# install
RUN poetry config virtualenvs.create false \
&& poetry install -vv --no-root --no-dev --no-interaction \
&& poetry show -v
Expand All @@ -42,10 +45,6 @@ COPY ./deployment/uwsgi/uwsgi.ini /etc/uwsgi/uwsgi.ini
COPY ./deployment/uwsgi/wsgi.py /$appname/wsgi.py
COPY clear_prometheus_multiproc /$appname/clear_prometheus_multiproc

RUN poetry config virtualenvs.create false \
&& poetry install -vv --no-dev --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

Expand Down

0 comments on commit ec1518b

Please sign in to comment.