Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98dabe5994 | |||
| 64041cfd9c |
1 changed files with 8 additions and 6 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -2,17 +2,19 @@ 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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue