diff options
Diffstat (limited to 'dev/Dockerfile')
-rw-r--r-- | dev/Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dev/Dockerfile b/dev/Dockerfile index 0b35724a..49d03ffd 100644 --- a/dev/Dockerfile +++ b/dev/Dockerfile @@ -1,16 +1,17 @@ -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 +RUN poetry install --no-root --only dev,main # 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"] |