redlib: add containerfile for custom build
This commit is contained in:
@@ -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"]
|
||||||
Reference in New Issue
Block a user