Skip to content

Commit

Permalink
simpler poetry install
Browse files Browse the repository at this point in the history
  • Loading branch information
aogier committed Jan 11, 2024
1 parent 728063d commit 485b02f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
ARG PYTHON_VERSION=3.10
FROM aogier/python-poetry:py${PYTHON_VERSION}-git as poetry
FROM python:${PYTHON_VERSION} as base

WORKDIR /srv
COPY . .

# hadolint ignore=DL3042,DL3013
RUN set -x \
&& pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install

FROM poetry as test
FROM base as test

ARG PYTHON_VERSION=3.10

Expand All @@ -28,7 +30,7 @@ RUN if [ $PYTHON_VERSION != 3.7 ] \
--cov-fail-under=100 \
--cov-report=term-missing

FROM poetry as release
FROM base as release

ARG PYPI_TOKEN
ARG CODECOV_TOKEN
Expand Down

0 comments on commit 485b02f

Please sign in to comment.