-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
43 lines (39 loc) · 1.14 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
42
43
FROM ubuntu:22.04
MAINTAINER Matt Godbolt <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y -q && apt upgrade -y -q && apt upgrade -y -q && apt install -y -q \
bison \
bzip2 \
curl \
file \
flex \
gawk \
g++ \
gcc \
gdc \
git \
gnat-11 \
libc6-dev-i386 \
libelf-dev \
linux-libc-dev \
make \
patch \
subversion \
texinfo \
unzip \
wget \
xz-utils && \
cd /tmp && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf aws*
## The Rust frontend now requires rustc to build.
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s - -y
# We build from a directory that must be at least searchable with
# EPERM on the CE nodes. Older GCCs erroneously search the $prefix
# used during building, and if they hit a path that gives EPERM they
# bail out. /opt/compiler-explorer/* is a safe spot to build these.
RUN mkdir -p /opt/compiler-explorer/gcc-build
COPY build /opt/compiler-explorer/gcc-build
WORKDIR /opt/compiler-explorer/gcc-build