-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): fix cargo installation for using in ci (#1776)
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,11 @@ LABEL io.parity.image.authors="[email protected]" \ | |
io.parity.image.created="${BUILD_DATE}" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl gnupg lsb-release jq tini vim procps && \ | ||
apt-get install -y curl gnupg lsb-release jq tini vim procps build-essential && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# install rust | ||
ENV RUST_VERSION=1.75.0 | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y | ||
|
||
# install gcloud and kubectl | ||
WORKDIR /home/nonroot/ | ||
ENV CLOUDSDK_INSTALL_DIR /usr/local/gcloud | ||
|
@@ -62,6 +58,13 @@ RUN chown -R nonroot. /etc/zombie-net | |
|
||
# Use the non-root user to run our application | ||
USER nonroot | ||
|
||
# install rust | ||
ENV RUST_VERSION=1.75.0 | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y | ||
|
||
ENV PATH $PATH:/home/nonroot/.cargo/bin | ||
|
||
# Tini allows us to avoid several Docker edge cases, see https://github.com/krallin/tini. | ||
ENTRYPOINT ["tini", "--", "bash"] | ||
|