-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
41 lines (33 loc) · 1.11 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
FROM ubuntu:20.04
# Install baseline
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata
RUN apt install -y curl wget git build-essential software-properties-common
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt update
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt install -y nodejs
# Install C compilers
RUN apt install -y gcc-7 gcc-8 gcc-9 gcc-10 gcc-11
# Install C++ compilers
RUN apt install -y g++-7 g++-8 g++-9 g++-10 g++-11
# Install LLVM
RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 9
RUN ./llvm.sh 10
RUN ./llvm.sh 11
RUN ./llvm.sh 12
RUN ./llvm.sh 13
RUN ./llvm.sh 14
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
# Install Compiler Explorer
RUN git clone https://github.com/compiler-explorer/compiler-explorer /opt/compiler-explorer
RUN rm -rf /opt/compiler-explorer/etc/config/*.properties
COPY configs/* /opt/compiler-explorer/etc/config/
RUN cd /opt/compiler-explorer && npm install
ENV PATH="/root/.cargo/bin:$PATH"
WORKDIR /opt/compiler-explorer
ENTRYPOINT [ "make" ]