build: install lerna in Docker images
This commit is contained in:
parent
1238ee0276
commit
1b0b075b48
2 changed files with 4 additions and 6 deletions
|
@ -22,7 +22,7 @@ RUN apk add --update --no-cache wget musl-dev && \
|
||||||
tar \
|
tar \
|
||||||
ninja && \
|
ninja && \
|
||||||
apk upgrade && \
|
apk upgrade && \
|
||||||
npm install -g pnpm
|
npm install -g pnpm lerna
|
||||||
|
|
||||||
RUN rustup-init -y && \
|
RUN rustup-init -y && \
|
||||||
yarn global add pnpm && \
|
yarn global add pnpm && \
|
||||||
|
|
|
@ -6,8 +6,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \
|
||||||
CARGO_HOME=/usr/local/cargo \
|
CARGO_HOME=/usr/local/cargo \
|
||||||
PATH=/usr/local/cargo/bin:$PATH \
|
PATH=/usr/local/cargo/bin:$PATH \
|
||||||
CC=clang \
|
CC=clang \
|
||||||
CXX=clang++ \
|
CXX=clang++
|
||||||
CXXFLAGS="-stdlib=libc++ -std=c++20 -static"
|
|
||||||
|
|
||||||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
|
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
|
||||||
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \
|
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \
|
||||||
|
@ -33,9 +32,8 @@ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
||||||
rustup target add aarch64-unknown-linux-gnu && \
|
rustup target add aarch64-unknown-linux-gnu && \
|
||||||
rustup target add armv7-unknown-linux-gnueabihf && \
|
rustup target add armv7-unknown-linux-gnueabihf && \
|
||||||
npm install -g pnpm && \
|
npm install -g pnpm lerna && \
|
||||||
ln -sf /usr/bin/clang /usr/bin/cc && \
|
ln -sf /usr/bin/clang /usr/bin/cc
|
||||||
echo '[target.x86_64-unknown-linux-gnu]\nrustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld", "-C", "link-arg=-Wl", "-C", "link-arg=-lc++"]' > /usr/local/cargo/config.toml
|
|
||||||
|
|
||||||
RUN wget https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.xz && \
|
RUN wget https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.xz && \
|
||||||
tar -xf nasm-${NASM_VERSION}.tar.xz && \
|
tar -xf nasm-${NASM_VERSION}.tar.xz && \
|
||||||
|
|
Loading…
Reference in a new issue