feat(docker): install Rust toolchain (rustup) and add aarch64 cross-compilation support to Docker images
This commit is contained in:
@@ -30,6 +30,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
iputils-ping \
|
||||
dnsutils \
|
||||
tini \
|
||||
gcc-aarch64-linux-gnu \
|
||||
&& apt-get clean
|
||||
|
||||
# Layer 2: Chromium + Puppeteer/Playwright browser deps
|
||||
@@ -132,6 +133,12 @@ RUN curl -fsSL https://deno.land/install.sh | sh
|
||||
ENV DENO_INSTALL="/root/.deno"
|
||||
ENV PATH="$DENO_INSTALL/bin:$PATH"
|
||||
|
||||
# Install Rust
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
|
||||
&& . /root/.cargo/env \
|
||||
&& rustup target add aarch64-unknown-linux-gnu
|
||||
ENV PATH="/root/.cargo/bin:$PATH"
|
||||
|
||||
# Set entrypoint to make nvm available in all runtime contexts
|
||||
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
|
||||
CMD ["bash"]
|
||||
|
||||
Reference in New Issue
Block a user