From c5ddcb2d751885fcc45827ed3563e8cf68a326a5 Mon Sep 17 00:00:00 2001 From: superpoussin22 Date: Fri, 21 Mar 2025 08:52:56 +0100 Subject: [PATCH] Update Dockerfile correct syntax update lock file to avoid build failure --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cdc3bfd..0846eb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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