1
0

redlib: add containerfile for custom build

This commit is contained in:
2026-02-11 18:21:28 +01:00
parent a78d719986
commit bb9a680421
+13
View File
@@ -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"]