Skip to content

Commit

Permalink
Fix(Dockerfile) Make compatible with new poetry version (#4055)(patch)
Browse files Browse the repository at this point in the history
## Description
Poetry version 2.0.0 was released recently, converting some previous warnings to errors. This causes our dockerfile to fail when installing the dependencies using poetry.

### Fixed
- Copies README file into container
- Split install of requirements our of install of actual cg-repo
  • Loading branch information
Vince-janv authored Jan 7, 2025
1 parent a9aa871 commit 6b2a79b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ ENV TRAILBLAZER_SERVICE_ACCOUNT_AUTH_FILE="auth_file"


WORKDIR /home/src/app
COPY pyproject.toml poetry.lock gunicorn.conf.py ./
COPY pyproject.toml poetry.lock gunicorn.conf.py README.md ./

RUN pip install --no-cache-dir poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
&& poetry install --no-interaction --no-ansi --no-root

COPY cg ./cg

RUN poetry install --no-interaction --no-ansi

CMD gunicorn \

Check warning on line 36 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-image-push

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
--config gunicorn.conf.py \
cg.server.auto:app

0 comments on commit 6b2a79b

Please sign in to comment.