summaryrefslogblamecommitdiff
path: root/Dockerfile.build
blob: 0158b8af46ccd772f0a99d7d7907e3aece55c177 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                   
                         
            
        
                         
 


                                               

           
                      
FROM debian:bookworm AS deb_extractor
RUN cd /tmp && \
    apt-get update && apt-get download \
        libc6 && \
    mkdir /dpkg && \
    for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done

FROM rust:1.73 as builder
WORKDIR /app
COPY . .
RUN cargo build --release

FROM gcr.io/distroless/cc
COPY --from=builder /app/target/release/webol /
COPY --from=deb_extractor /dpkg /

EXPOSE 7229
ENTRYPOINT ["./webol"]