wala-rust

Content-adressed HTTP file server
Info | Log | Files | Refs | README | LICENSE

Dockerfile (491B)


      1 FROM rust:1-slim-bullseye AS build
      2 
      3 RUN apt-get update
      4 RUN apt-get install -y build-essential clang llvm pkg-config nettle-dev
      5 
      6 WORKDIR /build
      7 COPY . /build
      8 
      9 RUN cargo build --release --all-features --target x86_64-unknown-linux-gnu
     10 RUN strip ./target/x86_64-unknown-linux-gnu/release/wala
     11 
     12 FROM debian:bullseye-slim
     13 
     14 ENV DEBIAN_FRONTEND=noninteractive
     15 ENV RUST_LOG=info
     16 
     17 WORKDIR /service
     18 
     19 COPY --from=build /build/target/x86_64-unknown-linux-gnu/release/wala .
     20 
     21 EXPOSE 8000
     22 
     23 CMD ["./wala"]