-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change build image to debian/alpine (#14755)
- Loading branch information
Showing
10 changed files
with
58 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM alpine:3.19 | ||
|
||
ENV PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
ENV LANGUAGE en_US | ||
ENV LANG en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN apk --update add --no-cache bash | ||
|
||
COPY rust-toolchain.toml /build/rust-toolchain.toml | ||
COPY dev_setup.sh /build/scripts/setup/dev_setup.sh | ||
RUN chmod +x /build/scripts/setup/dev_setup.sh && \ | ||
/build/scripts/setup/dev_setup.sh -yb && \ | ||
rm -rf /root/.cargo/git && \ | ||
rm -rf /root/.cargo/registry && \ | ||
mkdir -p /opt/rust && \ | ||
mv /root/.cargo /opt/rust/cargo && \ | ||
mv /root/.rustup /opt/rust/rustup | ||
|
||
RUN curl -sSfLo /tmp/mold.tar.gz https://github.com/rui314/mold/releases/download/v2.4.0/mold-2.4.0-$(uname -m)-linux.tar.gz && \ | ||
tar --strip-components=1 -xzf /tmp/mold.tar.gz -C /usr/local && \ | ||
rm -rf /tmp/mold.tar.gz && \ | ||
ln -sf /usr/local/bin/mold /usr/bin/$(uname -m)-linux-gnu-ld | ||
|
||
ENV RUSTUP_HOME /opt/rust/rustup | ||
ENV CARGO_HOME /opt/rust/cargo | ||
ENV PATH /opt/rust/cargo/bin:/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
VOLUME [ "/workspace", "/opt/rust/cargo/registry", "/opt/rust/cargo/git" ] |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters