-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 689 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Content Engine - Production Dockerfile
FROM python:3.12-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Set working directory
WORKDIR /app
# Copy dependency files
COPY pyproject.toml uv.lock* ./
# Install dependencies (create venv in container)
RUN uv sync --frozen
# Copy application code
COPY . .
# Create directories
RUN mkdir -p /app/data /app/context
# Environment variables
ENV PYTHONUNBUFFERED=1
ENV PATH="/app/.venv/bin:$PATH"
# Run database migrations on startup
RUN uv run alembic upgrade head || true
# Expose port for API
EXPOSE 5000
# Default command (override in docker-compose.yml)
CMD ["uv", "run", "content-engine", "--help"]