From 8373242992be90709af0cc821abda61c964b6f24 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Sun, 3 Sep 2023 11:47:14 +0700 Subject: [PATCH] update dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 359cdd5..9868a86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ cargo build --release && cp /app/target/release/chisel-operator /app/chisel-operator FROM redhat/ubi9:latest -COPY --from=build-env /app/chisel-operator /usr/bin/chisel-operator +RUN useradd -u 1001 chisel +USER 1001 +COPY --from=build-env --chown=chisel /app/chisel-operator /usr/bin/chisel-operator CMD ["chisel-operator"] \ No newline at end of file