Skip to content

Commit c6182db

Browse files
authored
fix(docker): Ensure /install directory is created in builder stage (#12)
The Docker build was failing in the GitHub Actions workflow because the /install directory was not being created in the builder stage when there were no production dependencies. This change ensures the directory is always created, preventing the COPY command from failing.
1 parent 3588ce8 commit c6182db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ COPY pyproject.toml poetry.lock* ./
1212
COPY src/ ./src/
1313

1414
# Export dependencies and install them
15-
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes && \
15+
RUN mkdir -p /install && \
16+
poetry export -f requirements.txt --output requirements.txt --without-hashes && \
1617
pip install --no-cache-dir --prefix="/install" -r requirements.txt
1718

1819

0 commit comments

Comments
 (0)