diff --git a/Dockerfile b/Dockerfile index e023f3bf5de5e0d15aa032a98075746a6f9b51cd..13870c6f39bb01b4060d9d04679b968e7d694e14 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