summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-01-27 23:39:15 -0600
committerunitexe <unitexe70@gmail.com>2026-01-27 23:39:35 -0600
commitcdac69878b058dcd1a150d768e2627d41af211c2 (patch)
tree91c2e84728c9e08cb5d0a787e1688e9d4c1bde83 /Containerfile
Initial commit
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..1494828
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,31 @@
+#
+# Build stage
+#
+
+FROM rust:1.91-alpine3.23 AS builder
+
+RUN apk add --no-cache musl-dev
+
+WORKDIR /app
+
+COPY Cargo.toml Cargo.lock* ./
+
+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/banner-rs /app/banner
+
+EXPOSE 8080
+
+CMD ["/app/banner"]