Files
cavepediav2/web/agent/Dockerfile
Paul Walko c808f51eb7
All checks were successful
Build and Push Agent Docker Image / build (push) Successful in 1m3s
Build and Push Web Docker Image / build (push) Successful in 3m59s
pass roles + debugging
2025-12-13 17:23:52 +01:00

29 lines
505 B
Docker

FROM python:3.13-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
ENV PYTHONPATH=/app
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Install dependencies
RUN uv sync --frozen --no-dev
# Copy application code
COPY src ./src
# Create non-root user
RUN useradd --create-home --shell /bin/bash agent
USER agent
EXPOSE 8000
ENV PORT=8000
ENV HOST="0.0.0.0"
CMD ["uv", "run", "--frozen", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]