From bb9a680421d5fe293435ae5f0dd02d89f12bd83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 11 Feb 2026 18:21:28 +0100 Subject: [PATCH] redlib: add containerfile for custom build --- containerfiles/redlib.containerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 containerfiles/redlib.containerfile diff --git a/containerfiles/redlib.containerfile b/containerfiles/redlib.containerfile new file mode 100644 index 0000000..9a9f7c8 --- /dev/null +++ b/containerfiles/redlib.containerfile @@ -0,0 +1,13 @@ +FROM rust:alpine AS builder +RUN apk add --no-cache musl-dev openssl-dev g++ make git perl +WORKDIR /usr/src/redlib +# Pull the specific PR branch directly during build +RUN git clone -b feature/tls-openssl https://github.com/chowder/redlib.git . +RUN cargo build --release + +FROM alpine:3.19 +RUN apk add --no-cache ca-certificates openssl libgcc +COPY --from=builder /usr/src/redlib/target/release/redlib /usr/local/bin/redlib +USER nobody +EXPOSE 8080 +CMD ["redlib"] \ No newline at end of file