-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
57 lines (55 loc) · 1.43 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM debian
ENV DEBIAN_FRONTEND="noninteractive" RUST_NIGHTLY_NAME="rust-nightly-x86_64-unknown-linux-gnu"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
binutils-dev \
build-essential \
ca-certificates \
cmake \
curl \
git \
libcurl4-openssl-dev \
libdw-dev \
libelf-dev \
libiberty-dev \
pkg-config \
python \
unzip \
zlib1g-dev && \
curl -sOSL https://static.rust-lang.org/dist/${RUST_NIGHTLY_NAME}.tar.gz && \
curl -s https://static.rust-lang.org/dist/${RUST_NIGHTLY_NAME}.tar.gz.sha256 | sha256sum -c - && \
tar -xzf ${RUST_NIGHTLY_NAME}.tar.gz && \
./${RUST_NIGHTLY_NAME}/install.sh && \
curl -sOSL https://github.com/SimonKagstrom/kcov/archive/master.zip && \
unzip master.zip && \
cd kcov-master && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
cd ../.. && \
rm -rf kcov-master && \
rm master.zip && \
rm -rf \
${RUST_NIGHTLY_NAME} \
${RUST_NIGHTLY_NAME}.tar.gz \
/tmp/* \
/var/tmp/* \
/var/lib/apt/lists/* && \
apt-get remove --purge -y curl \
binutils-dev \
build-essential \
cmake \
curl \
libcurl4-openssl-dev \
libdw-dev \
libelf-dev \
libiberty-dev \
python \
unzip \
zlib1g-dev && \
apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev \
libsqlite3-dev \