-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (18 loc) · 956 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:latest
WORKDIR /
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update
RUN apt -y dist-upgrade
RUN apt -y install build-essential cmake gcc-10 g++-10 clang-11 clang-format-11 clang-tidy-11 python3 python3-pip
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 100
RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100
RUN update-alternatives --install /usr/bin/clang-tidy cclang-tidy /usr/bin/clang-tidy-11 100
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100
RUN pip3 install --upgrade pip
RUN apt -y autoclean
RUN apt -y clean
RUN rm -rf /var/lib/apt/lists/*