-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 961 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM debian
MAINTAINER Edwin Harmsma <[email protected]>
WORKDIR /root
ENV USER=root
ENV PATH=/root/.cargo/bin/:$PATH
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
file \
gcc \
build-essential \
musl-tools \
libc6-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
# Important: use commands like below to install the desired targets and/or toolchains:
# MUSL stable (static compiled standalone binaries):
# RUN rustup target add x86_64-unknown-linux-musl
# MUSL nightly
# RUN rustup toolchain install nightly && \
# rustup default nightly && \
# rustup target add x86_64-unknown-linux-musl
# Or all available tags at https://hub.docker.com/r/ejharmsma/rustup/tags/
# and sources at https://github.com/ejharmsma/docker-rustup
CMD cargo