-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (23 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
24 lines (23 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
FROM moul/kernel-builder
RUN apt-get update && apt-get install -y \
imagemagick \
graphviz \
dvipng \
fonts-dejavu \
fonts-noto-cjk \
latexmk \
librsvg2-bin \
virtualenv \
texlive-xetex \
flex \
bison \
libelf-dev
# Update gcc to ver 8
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get install -y \
gcc-8 \
g++-8
# Now we have 2 versions of gcc: version 5 from moul/kernel-builder and version 8 that we just installed
# Set version 8 as default gcc:
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90 --slave /usr/bin/g++ g++ /usr/bin/g++-8