blob: e47c7491db10299bf378b3b508b6a6f998413091 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
FROM rust:bookworm as builder
WORKDIR /usr/src/sentrum
COPY . .
RUN cargo build --release
FROM debian:bookworm-slim as final
# Upgrade all packages and install dependencies
RUN apt-get update \
&& apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libssl-dev \
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --from=builder /usr/src/sentrum/target/release/sentrum /usr/local/bin/sentrum
COPY sentrum.sample.toml sentrum.toml
CMD ["sentrum"]
|