From 485b02f98bb2fa4a1b2c1ae647d397d88b949b33 Mon Sep 17 00:00:00 2001 From: Alessandro Ogier Date: Thu, 11 Jan 2024 19:32:22 +0100 Subject: [PATCH] simpler poetry install --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e3392a..7d63e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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