From 6cac9dc9c23006c038a164b3f98353774cef4ed4 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 24 Nov 2024 10:31:49 +0000 Subject: [PATCH] fix(docker): disable auto-creation of virtualenv inside container --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 661e8fb..26ef8e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,9 @@ RUN mkdir -p /.local && \ COPY pyproject.toml /run/pyproject.toml COPY poetry.lock /run/poetry.lock -RUN poetry install --without dev + +RUN poetry config virtualenvs.create false && \ + poetry install --without dev ENTRYPOINT ["python3", "-B", "-m", "app.main"]