diff --git a/Dockerfile b/Dockerfile index 8ec7d3c..8134e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" +# 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 # - deps necessary(?) to build-std on musl # - upx 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 FROM git.dzuchun.ing/actions/alpine