From 856cadb0d3304837c052805692bc9063e8a03534 Mon Sep 17 00:00:00 2001 From: Louis <contact@louiscap.co> Date: Sun, 22 Dec 2024 19:07:59 +0000 Subject: [PATCH] Process rust after switching back to rustbuilder user --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e023f3b..13870c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,6 @@ COPY commands/butler_upload.sh /usr/bin/butler_upload COPY commands/emsdk_install.sh /usr/bin/emsdk_install -RUN rustup install nightly && \ - rustup component add rust-src --toolchain nightly && \ - rustup target add wasm32-unknown-emscripten --toolchain nightly - RUN chmod +x /usr/bin/godot_* /usr/bin/butler_* RUN godot_install $GODOT_VERSION $PLATFORM RUN butler_install $BUTLER_VERSION @@ -32,4 +28,10 @@ ENV EMSDK=/usr/bin/emsdk RUN emsdk_install "${EMSDK}" ENV EMSDK_NODE="${EMSDK}/node/20.18.0_64bit/bin/node" -ENV PATH="${EMSDK}:${EMSDK}/upstream/emscripten:${PATH}" \ No newline at end of file +ENV PATH="${EMSDK}:${EMSDK}/upstream/emscripten:${PATH}" + +USER rustbuilder + +RUN rustup install nightly && \ + rustup component add rust-src --toolchain nightly && \ + rustup target add wasm32-unknown-emscripten --toolchain nightly \ No newline at end of file -- GitLab