Skip to content

Commit c5ddcb2

Browse files
Update Dockerfile
correct syntax update lock file to avoid build failure
1 parent da63270 commit c5ddcb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM python:3.11-slim as builder
2+
FROM python:3.11-slim AS builder
33

44
WORKDIR /app
55

@@ -14,6 +14,9 @@ RUN poetry self add "poetry-plugin-export"
1414
# Copy only dependency files to leverage Docker layer caching
1515
COPY pyproject.toml poetry.lock ./
1616

17+
# update lock file to avoid failure
18+
RUN poetry lock
19+
1720
# Install dependencies
1821
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
1922
RUN pip install --no-cache-dir -r requirements.txt

0 commit comments

Comments
 (0)