diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/Dockerfile | 8 |
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"] |