-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 699 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (22 loc) · 699 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
FROM python:3.11-slim AS builder
WORKDIR /build
# Install build deps
RUN pip install --no-cache-dir build
COPY . .
# Build wheel
RUN python -m build --wheel
# ---------------------------------------------------------------------------
# Runtime image
# ---------------------------------------------------------------------------
FROM python:3.11-slim AS runtime
WORKDIR /app
# Copy wheel from builder
COPY --from=builder /build/dist/*.whl /tmp/
RUN pip install --no-cache-dir /tmp/*.whl && rm /tmp/*.whl
# Copy patterns (loaded at runtime by auto-kit CLI)
COPY patterns/ /app/patterns/
# Non-root user
RUN useradd -m automationkit
USER automationkit
ENTRYPOINT ["auto-kit"]
CMD ["--help"]