From 2ad73c4ea94d42579661dce3074cc075f52e6cc7 Mon Sep 17 00:00:00 2001 From: unitexe Date: Wed, 14 Jan 2026 16:43:19 -0600 Subject: Initial commit --- Containerfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..4c8852b --- /dev/null +++ b/Containerfile @@ -0,0 +1,37 @@ +# A multi-stage container file for the pubd application. + +# +# Build stage +# + +FROM rust:1.91-alpine3.23 AS builder + +RUN apk add --no-cache musl-dev protobuf-dev + +WORKDIR /app + +COPY Cargo.toml Cargo.lock* ./ + +COPY proto ./proto + +COPY build.rs ./ + +COPY src ./src + +RUN cargo build --release + +# +# Run stage +# + +FROM alpine:latest + +RUN apk add --no-cache libgcc + +WORKDIR /app + +COPY --from=builder /app/target/release/pubd /app/pubd + +EXPOSE 60069 + +CMD ["/app/pubd"] -- cgit v1.2.3