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