aboutsummaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-10-25 21:53:20 +0100
committerGravatar Chris Lovering <[email protected]>2022-12-11 13:43:19 +0000
commit071cffa204e8e48e7f001a1e1b85804e9a9081ca (patch)
treecc04524d1c7a814170f894008e7d1fb018fdbabb /dev
parentMerge pull request #162 from python-discord/handle-thread-close-on-interactin (diff)
Support 3.11 & bump all deps
Diffstat (limited to 'dev')
-rw-r--r--dev/Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/Dockerfile b/dev/Dockerfile
index 0b35724a..aaf275ca 100644
--- a/dev/Dockerfile
+++ b/dev/Dockerfile
@@ -4,13 +4,13 @@ FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim
# Install project dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-root
+RUN poetry install --no-root --without lint,doc,test
# Copy the source code in last to optimize rebuilding the image
COPY . .
# Install again, this time with the root project
-RUN poetry install
+RUN poetry install --only-root
-ENTRYPOINT ["python"]
-CMD ["-m", "bot"]
+ENTRYPOINT ["poetry"]
+CMD ["run", "python", "-m", "bot"]