-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (26 loc) · 775 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (26 loc) · 775 Bytes
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
FROM debian
ENV USER root
ENV RUST_VERSION=1.19.0
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
openssh-client \
libssl-dev \
pkg-config && \
curl -sO https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init && \
chmod +x rustup-init && \
./rustup-init -y --default-toolchain $RUST_VERSION --no-modify-path && \
DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y curl && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf \
rustup-init \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* && \
mkdir /source
ENV PATH $PATH:/root/.cargo/bin
WORKDIR /source
CMD ["/bin/bash"]