Files
status-checker/Dockerfile
2025-04-08 19:57:13 -04:00

22 lines
463 B
Docker

FROM rust:1.84.0-slim as build
RUN rustup target add x86_64-unknown-linux-musl && \
apt update && \
apt install -y musl-tools musl-dev && \
update-ca-certificates
COPY ./src ./src
COPY ./Cargo.lock .
COPY ./Cargo.toml .
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid 10001 \
"tom"
RUN cargo build --target x86_64-unknown-linux-musl --release