From 8c3c9596844d89c517708e28c248916298a94d70 Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Tue, 17 Dec 2024 02:16:49 +0000 Subject: [PATCH] fix: copy uname see https://github.com/revoltchat/backend/commit/f01794af933d52955e4a51d6d8a77567702fc24d, https://github.com/revoltchat/backend/commit/4c46054bff5e4a61f94c38e43fd3017f68837c1b and https://github.com/revoltchat/self-hosted/issues/104 --- crates/bonfire/Dockerfile | 2 ++ crates/daemons/pushd/Dockerfile | 2 ++ crates/delta/Dockerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/crates/bonfire/Dockerfile b/crates/bonfire/Dockerfile index e8a47223..99969df8 100644 --- a/crates/bonfire/Dockerfile +++ b/crates/bonfire/Dockerfile @@ -1,9 +1,11 @@ # Build Stage FROM ghcr.io/upryzing/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/upryzing-bonfire ./ +COPY --from=debian /usr/bin/uname /usr/bin/uname EXPOSE 14703 USER nonroot diff --git a/crates/daemons/pushd/Dockerfile b/crates/daemons/pushd/Dockerfile index 00db8536..ae9c36c1 100644 --- a/crates/daemons/pushd/Dockerfile +++ b/crates/daemons/pushd/Dockerfile @@ -1,9 +1,11 @@ # Build Stage FROM ghcr.io/upryzing/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/upryzing-pushd ./ +COPY --from=debian /usr/bin/uname /usr/bin/uname USER nonroot CMD ["./upryzing-pushd"] \ No newline at end of file diff --git a/crates/delta/Dockerfile b/crates/delta/Dockerfile index 8d6bae24..904ab606 100644 --- a/crates/delta/Dockerfile +++ b/crates/delta/Dockerfile @@ -1,9 +1,11 @@ # Build Stage FROM ghcr.io/upryzing/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/upryzing-delta ./ +COPY --from=debian /usr/bin/uname /usr/bin/uname EXPOSE 14702 ENV ROCKET_ADDRESS 0.0.0.0