Skip to content

Commit 81d7299

Browse files
committed
chore: move sandbox tool installation earlier in Dockerfile
Relocate the installation of curl, wget, mawk, gcc, and libc-dev to before Node.js and Python setup steps. This streamlines the Dockerfile by grouping sandbox tool installs together and avoids redundant apt-get runs.
1 parent a42f253 commit 81d7299

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ COPY --from=mise /usr/local/bin/mise /usr/local/bin/mise
2121

2222
ENV MISE_DATA_DIR="/mise"
2323

24+
# Install tools for sandbox
25+
RUN apt-get update && \
26+
apt-get install -y --no-install-recommends \
27+
curl wget mawk gcc libc-dev && \
28+
rm -rf /var/lib/apt/lists/*
29+
2430
# Node.js
2531
ENV PATH="/mise/installs/node/24.14.0/bin:$PATH"
2632
RUN mise use -g node@24.14.0
@@ -43,12 +49,6 @@ RUN cd /tmp/preinstall && \
4349
ENV PATH="/mise/installs/python/3.13.12/bin:$PATH"
4450
RUN mise use -g python@3.13.12
4551

46-
# Install tools for sandbox
47-
RUN apt-get update && \
48-
apt-get install -y --no-install-recommends \
49-
curl wget mawk gcc libc-dev && \
50-
rm -rf /var/lib/apt/lists/*
51-
5252
# Rust
5353
ENV RUSTUP_HOME="/mise/rustup" \
5454
CARGO_HOME="/mise/cargo"

0 commit comments

Comments
 (0)