From 4c46054bff5e4a61f94c38e43fd3017f68837c1b Mon Sep 17 00:00:00 2001 From: IAmTomahawkx Date: Fri, 13 Dec 2024 15:40:04 -0800 Subject: [PATCH] add uname to other docker images --- crates/daemons/pushd/Dockerfile | 2 ++ crates/delta/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/daemons/pushd/Dockerfile b/crates/daemons/pushd/Dockerfile index a1f80a39c..8123002a0 100644 --- a/crates/daemons/pushd/Dockerfile +++ b/crates/daemons/pushd/Dockerfile @@ -1,9 +1,11 @@ # Build Stage FROM ghcr.io/revoltchat/base:latest 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"] \ No newline at end of file diff --git a/crates/delta/Dockerfile b/crates/delta/Dockerfile index d1f949d5d..bb98e5cbb 100644 --- a/crates/delta/Dockerfile +++ b/crates/delta/Dockerfile @@ -1,9 +1,11 @@ # Build Stage FROM ghcr.io/revoltchat/base:latest 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-delta ./ +COPY --from=debian /usr/bin/uname /usr/bin/uname EXPOSE 8000 ENV ROCKET_ADDRESS 0.0.0.0