From cdac69878b058dcd1a150d768e2627d41af211c2 Mon Sep 17 00:00:00 2001 From: unitexe Date: Tue, 27 Jan 2026 23:39:15 -0600 Subject: Initial commit --- Containerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') 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"] -- cgit v1.2.3