aboutsummaryrefslogtreecommitdiffstats
path: root/dev/Dockerfile
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-10-26 15:27:16 +0100
committerGravatar Chris Lovering <[email protected]>2022-12-11 13:46:53 +0000
commit79a2e875a9ec1fe768bcd3b3c88e49b4d294bd90 (patch)
tree930b4087edbd2cd8bf00cbdfc0a79dfdddf72646 /dev/Dockerfile
parentAdd a dry run step to lint & test CI (diff)
Matrix test both 3.10 and 3.11 in CI
Diffstat (limited to 'dev/Dockerfile')
-rw-r--r--dev/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/Dockerfile b/dev/Dockerfile
index aaf275ca..49d03ffd 100644
--- a/dev/Dockerfile
+++ b/dev/Dockerfile
@@ -1,10 +1,11 @@
-FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim
+ARG python_version=3.11
+FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:$python_version-slim
# Install project dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-root --without lint,doc,test
+RUN poetry install --no-root --only dev,main
# Copy the source code in last to optimize rebuilding the image
COPY . .