diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e47c749 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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"] |