Compare commits

..

View file

@ -2,19 +2,17 @@ FROM git.dzuchun.ing/actions/alpine AS builder
ENV PATH="/root/.cargo/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ENV PATH="/root/.cargo/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh; \
chmod +x rustup.sh; \
./rustup.sh toolchain install stable -c cargo --profile minimal -y; \
./rustup.sh toolchain install nightly -c cargo --profile minimal -y;
# update package registry, install # update package registry, install
# - deps necessary(?) to build-std on musl # - deps necessary(?) to build-std on musl
# - upx # - upx
RUN apk update; apk add --no-cache libunwind-static; apk add --no-cache xz-static; apk add --no-cache upx; apk cache clean RUN apk update; apk add --no-cache libunwind-static; apk add --no-cache xz-static; apk add --no-cache upx; apk cache clean
# install Rust
RUN apk add --no-cache curl; \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh; \
chmod +x rustup.sh; \
./rustup.sh toolchain install stable -c cargo --profile minimal -y; \
./rustup.sh toolchain install nightly -c cargo --profile minimal -y; \
apk del curl;
# separate step to remove layers # separate step to remove layers
FROM git.dzuchun.ing/actions/alpine FROM git.dzuchun.ing/actions/alpine