-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (24 loc) · 977 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (24 loc) · 977 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
# SPDX-License-Identifier: MIT
# Multi-stage Dockerfile producing a slim container with the `pf` CLI.
# Built and pushed to ghcr.io/manav8498/processfork:<tag> on release.
FROM rust:1.91-slim AS build
WORKDIR /src
COPY Cargo.toml Cargo.lock ./
COPY crates ./crates
COPY benchmarks ./benchmarks
COPY examples ./examples
# Crate package was renamed pf-cli → processfork (binary stays `pf`,
# see crates/pf-cli/Cargo.toml [[bin]]).
RUN cargo build --release -p processfork
FROM debian:bookworm-slim
LABEL org.opencontainers.image.source="https://github.com/manav8498/processfork"
LABEL org.opencontainers.image.description="ProcessFork — fork() for AI agents"
LABEL org.opencontainers.image.licenses="MIT"
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /src/target/release/pf /usr/local/bin/pf
ENV PF_STORE=/data/store
VOLUME ["/data/store"]
ENTRYPOINT ["pf"]
CMD ["--help"]