Merge pull request #204 from superpoussin22/correct_dockerfile

Update Dockerfile
This commit is contained in:
Alexander Myasoedov
2025-03-21 12:59:36 +02:00
committed by GitHub
+4 -1
View File
@@ -1,5 +1,5 @@
# Build stage
FROM python:3.11-slim as builder
FROM python:3.11-slim AS builder
WORKDIR /app
@@ -14,6 +14,9 @@ RUN poetry self add "poetry-plugin-export"
# Copy only dependency files to leverage Docker layer caching
COPY pyproject.toml poetry.lock ./
# update lock file to avoid failure
RUN poetry lock
# Install dependencies
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
RUN pip install --no-cache-dir -r requirements.txt