-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 787 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 787 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
# =============================================================================
# EVOLVER Tools — Docker Image
# Multi-stage build for minimal image size
# =============================================================================
# ---- Stage 1: Build ----
FROM python:3.12-slim AS builder
WORKDIR /build
# Copy only what's needed for installation
COPY pyproject.toml README.md ./
COPY src/ ./src/
# Build and install the package
RUN pip install --no-cache-dir --user .
# ---- Stage 2: Runtime ----
FROM python:3.12-slim
# Copy installed package from builder
COPY --from=builder /root/.local /root/.local
# Ensure local bin is in PATH
ENV PATH=/root/.local/bin:$PATH
# Set working directory
WORKDIR /data
# Entry point: evtool command
ENTRYPOINT ["evtool"]
CMD ["--help"]