Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 72038a7

Browse files
committed
fix #19: add alpine image
1 parent 1ad61aa commit 72038a7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

alpine/Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM alpine:3.10
2+
3+
ENV RUSTUP_HOME=/usr/local/rustup \
4+
CARGO_HOME=/usr/local/cargo \
5+
PATH=/usr/local/cargo/bin:$PATH
6+
7+
RUN set -eux; \
8+
apk add --no-cache \
9+
ca-certificates \
10+
gcc; \
11+
\
12+
url="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-musl/rustup-init"; \
13+
wget "$url"; \
14+
echo "b535be813cd89000044764806f569a8c1428417d4226f16ee9993867f0c4ea4e *rustup-init" | sha256sum -c -; \
15+
chmod +x rustup-init; \
16+
./rustup-init -y --no-modify-path --default-toolchain nightly; \
17+
rm rustup-init; \
18+
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
19+
rustup --version; \
20+
cargo --version; \
21+
rustc --version;

0 commit comments

Comments
 (0)