We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da63270 commit c5ddcb2Copy full SHA for c5ddcb2
Dockerfile
@@ -1,5 +1,5 @@
1
# Build stage
2
-FROM python:3.11-slim as builder
+FROM python:3.11-slim AS builder
3
4
WORKDIR /app
5
@@ -14,6 +14,9 @@ RUN poetry self add "poetry-plugin-export"
14
# Copy only dependency files to leverage Docker layer caching
15
COPY pyproject.toml poetry.lock ./
16
17
+# update lock file to avoid failure
18
+RUN poetry lock
19
+
20
# Install dependencies
21
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
22
RUN pip install --no-cache-dir -r requirements.txt
0 commit comments