mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-24 14:19:55 +02:00
19 lines
463 B
Docker
19 lines
463 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN curl -sSL https://install.python-poetry.org | python3 -
|
|
|
|
# Ensure Poetry is available in PATH
|
|
ENV PATH="/root/.local/bin:$PATH"
|
|
RUN poetry self add "poetry-plugin-export"
|
|
|
|
COPY pyproject.toml poetry.lock ./
|
|
|
|
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|