summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-01-14 16:43:19 -0600
committerunitexe <unitexe70@gmail.com>2026-01-14 16:43:37 -0600
commit2ad73c4ea94d42579661dce3074cc075f52e6cc7 (patch)
tree5f50c05d2b4de11fd9c586cf867d9d21acbc5aa0 /Containerfile
Initial commit
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile37
1 files changed, 37 insertions, 0 deletions
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"]