-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (21 loc) · 895 Bytes
/
Dockerfile
File metadata and controls
32 lines (21 loc) · 895 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
# Stage 1: Build dependencies and install project
FROM python:3.14-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
# Copy dependency files first for layer caching
COPY pyproject.toml uv.lock ./
# Install dependencies only (cached unless pyproject.toml or uv.lock change)
RUN uv sync --frozen --extra production --no-dev --no-install-project --no-editable
# Copy application source
COPY arca/ arca/
# Install the project itself
RUN uv sync --frozen --extra production --no-dev --no-editable
# Stage 2: Minimal runtime image
FROM python:3.14-slim
WORKDIR /app
# Copy the virtual environment with all installed packages
COPY --from=builder /app/.venv /app/.venv
# Add venv to PATH so dagster CLI is available (required by Helm chart)
ENV PATH="/app/.venv/bin:$PATH"
# Ensure Python output is sent straight to the container logs
ENV PYTHONUNBUFFERED=1