Skip to content

Commit 91b0d0a

Browse files
committed
fix(docker): add --no-root flag to poetry install
Prevent Poetry from trying to install the project itself, which fails due to missing README.md in builder stage.
1 parent ffa41c0 commit 91b0d0a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN pip install poetry
77
COPY pyproject.toml poetry.lock ./
88

99
RUN poetry config virtualenvs.in-project true && \
10-
poetry install --no-interaction
10+
poetry install --no-root --no-interaction
1111

1212
FROM python:3.12.1-slim
1313

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ authors = [
77
]
88
package-mode = false
99
license = {text = "MIT"}
10-
readme = "README.md"
1110
requires-python = ">=3.12"
1211
dependencies = [
1312
"alembic (==1.16.4)",

0 commit comments

Comments
 (0)