forked from openutm/verification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
42 lines (33 loc) · 992 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
42 lines (33 loc) · 992 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
34
35
36
37
38
39
40
41
42
# Development Dockerfile for hot reload and debugging
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS development
# Install development dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
htop \
pkg-config \
vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Configure UV for development
ENV UV_COMPILE_BYTECODE=0
ENV UV_LINK_MODE=copy
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app/src
# Copy dependency files
COPY LICENSE README.md pyproject.toml uv.lock ./
# Install all dependencies including dev dependencies
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen
# Copy source code
COPY . .
# Create directories
RUN mkdir -p /app/reports /app/config
# Set executable path
ENV PATH="/app/.venv/bin:$PATH"
# Default command for development
CMD ["openutm-verify", "--config", "config/default.yaml"]