Skip to content

Commit

Permalink
Merge pull request #68 from JakobMiksch/patch-1
Browse files Browse the repository at this point in the history
docker: add Python files after installation of dependencies
  • Loading branch information
pblottiere authored Aug 7, 2024
2 parents 8dc4895 + 383ec41 commit e0a3494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /qsa
ADD qsa-api/qsa_api /qsa/qsa_api
ADD qsa-api/pyproject.toml .

RUN rm -rf venv \
Expand All @@ -16,6 +15,8 @@ RUN rm -rf venv \
&& pip install gunicorn \
&& poetry install

ADD qsa-api/qsa_api /qsa/qsa_api

ENV PATH=/qsa/venv/bin:$PATH
EXPOSE 5000
CMD ["gunicorn" , "-b", "0.0.0.0:5000", "--workers", "1", "--threads", "1", "qsa_api.app:app"]

0 comments on commit e0a3494

Please sign in to comment.