1
0
Files
docker-compose-templates/containerfiles/redlib.containerfile
T

13 lines
459 B
Docker

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"]