Skip to content

Commit

Permalink
Merge pull request #341 from phw/fix-ci-build
Browse files Browse the repository at this point in the history
Upgrade poetry and fix building with dev packages
  • Loading branch information
zas authored Jan 15, 2025
2 parents 59279e0 + 7b7a7bd commit 4cbbcb0
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 181 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ WORKDIR /code/website

# Python dependencies
RUN pip install --upgrade pip \
&& pip install uWSGI==2.0.23 poetry==1.7.1
&& pip install uWSGI==2.0.23 poetry==2.0.1
COPY poetry.lock pyproject.toml /code/website/
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
&& poetry install --no-interaction --no-ansi --no-root --with dev

# Node dependencies
COPY ./package.json /code/website/
Expand All @@ -50,7 +50,8 @@ RUN python -m pytest
COPY ./docker/uwsgi.ini /etc/uwsgi/uwsgi.ini

# Cleanup build dependencies
#RUN poetry install --no-dev
RUN poetry remove --no-interaction --no-ansi --group dev \
flask-testing pytest pytest-cov
RUN rm -rf ./node_modules .pytest_cache .coverage \
&& apt-get purge -y $BUILD_DEPS \
&& apt-get autoremove -y \
Expand Down
Loading

0 comments on commit 4cbbcb0

Please sign in to comment.