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

Commit a9b9dd8

Browse files
committed
[issue-15] reasonably support older linux distributions
1 parent 4f7e7be commit a9b9dd8

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Dockerfile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
FROM jimmycuadra/rust:1.16.0
1+
FROM alexcrichton/rust-slave-dist:2015-10-20b
22

3-
RUN mkdir -p /rust/app
3+
USER root
4+
ENV RUST_VERSION 1.16.0
5+
6+
RUN mkdir -p /rust/app && \
7+
unlink /rustroot/lib64/libgcc_s.so && \
8+
rm /rustroot/lib64/libgcc_s.so.1 && \
9+
ln -sf /lib64/libgcc_s.so.1 /lib64/libgcc_s.so && \
10+
curl -sO https://static.rust-lang.org/dist/rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \
11+
tar -xzf rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \
12+
./rust-$RUST_VERSION-x86_64-unknown-linux-gnu/install.sh --without=rust-docs && \
13+
rm -rf \
14+
rust-$RUST_VERSION-x86_64-unknown-linux-gnu \
15+
rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz \
16+
/var/lib/apt/lists/* \
17+
/tmp/* \
18+
/var/tmp/*
419
WORKDIR /rust/app
520

621
ENV TARGET=x86_64-unknown-linux-gnu

0 commit comments

Comments
 (0)