Files
agentic_security/Dockerfile
T
Alexander Myasoedov da6ae2c663 fix(dockerfile):
2025-01-20 22:42:57 +02:00

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 . .