mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 19:59:34 +02:00
Update Dockerfile
correct syntax update lock file to avoid build failure
This commit is contained in:
1 parent
da63270142
commit
c5ddcb2d75
1 file changed
+4
-1
+4
-1
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM python:3.11-slim as builder
|
FROM python:3.11-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -14,6 +14,9 @@ RUN poetry self add "poetry-plugin-export"
|
|||||||
# Copy only dependency files to leverage Docker layer caching
|
# Copy only dependency files to leverage Docker layer caching
|
||||||
COPY pyproject.toml poetry.lock ./
|
COPY pyproject.toml poetry.lock ./
|
||||||
|
|
||||||
|
# update lock file to avoid failure
|
||||||
|
RUN poetry lock
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
|
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|||||||
Reference in new issue
Block a user