Files
agentic_security/Dockerfile
T
Alexander Myasoedov 61b68f04d5 fix(EOL):
2025-01-20 18:16:07 +02:00

19 lines
469 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"
COPY pyproject.toml poetry.lock ./
RUN poetry self add "poetry-plugin-export" &&
poetry export -f requirements.txt --without-hashes -o requirements.txt &&
pip install --no-cache-dir -r requirements.txt
COPY . .