[mod] add user

This commit is contained in:
Andy Bunce 2026-03-15 16:09:59 +00:00
parent f1fdce0f00
commit 1122dd4816
2 changed files with 19 additions and 9 deletions

View file

@ -27,19 +27,19 @@ RUN curl -fsSL https://bun.sh/install | bash
# --- NEW SECTION: RUST SETUP ---
# 5. Install Rust (Official Script)
# Installs Cargo, Rustc, Rustfmt, etc.
ENV RUSTUP_HOME=/root/.rustup
ENV CARGO_HOME=/root/.cargo
ENV PATH="$CARGO_HOME/bin:$PATH"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile default
#ENV RUSTUP_HOME=/root/.rustup
#ENV CARGO_HOME=/root/.cargo
#ENV PATH="$CARGO_HOME/bin:$PATH"
#RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile default
# --- NEW SECTION: GO SETUP ---
# 6. Install Go (Latest Stable)
# We target 'linux-arm64' because you are on Apple Silicon (M3).
ARG GO_VER=1.23.4
RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-arm64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-arm64.tar.gz && \
rm go${GO_VER}.linux-arm64.tar.gz
ENV PATH="/usr/local/go/bin:$PATH"
#ARG GO_VER=1.23.4
#RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-arm64.tar.gz && \
# tar -C /usr/local -xzf go${GO_VER}.linux-arm64.tar.gz && \
# rm go${GO_VER}.linux-arm64.tar.gz
#ENV PATH="/usr/local/go/bin:$PATH"
# 6a basex https://files.basex.org/releases/12.2/BaseX122.zip
ARG BASEX_VER=12.2/BaseX122.zip
@ -102,6 +102,7 @@ RUN cat <<EOF > /root/.config/opencode/oh-my-opencode.json
}
EOF
USER 1000
WORKDIR /workspace
ENV SHELL=/bin/zsh
CMD ["/bin/zsh"]