# Build Stage # BASE_IMAGE is the compiled workspace base image. Defaults to the upstream # revolt base, but CI overrides it with our own base built from repo. ARG BASE_IMAGE=ghcr.io/revoltchat/base:latest FROM ${BASE_IMAGE} AS builder FROM debian:12 AS debian # Bundle Stage FROM gcr.io/distroless/cc-debian12:nonroot COPY --from=builder /home/rust/src/target/release/revolt-pushd ./ COPY --from=debian /usr/bin/uname /usr/bin/uname USER nonroot CMD ["./revolt-pushd"]