-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
28 lines (24 loc) · 1.08 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
FROM debian:stable-slim
LABEL maintainer="rayan.game.9236@gmail.com"
WORKDIR /project
RUN echo "*** Installing gcc (4.9->8) and clang (3.8->6) ***" \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get dist-upgrade -y \
&& echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list.d/jessie.list \
&& echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list \
&& apt-get update \
&& apt-get install -y cmake \
&& apt-get install -y g++-4.9 g++-5 g++-6 g++-7 g++-8 \
&& apt-get install -y clang++-3.8 \
&& apt-get install -y clang++-3.9 \
&& apt-get install -y clang++-4.0 \
&& apt-get install -y clang++-5.0 \
&& apt-get install -y clang++-6.0 \
&& apt-get install -y gdb \
&& apt-get autoremove --purge -y \
&& apt-get autoclean -y \
&& rm -rf /var/cache/apt/* /tmp/* \
&& echo "Setting g++ 8 as default compiler" \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 1
CMD ["bash"]