-
Notifications
You must be signed in to change notification settings - Fork 10
/
build_debian.dockerfile
57 lines (45 loc) · 1.17 KB
/
build_debian.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# [build] Debian or Ubuntu
ARG IMAGE="debian:bookworm-slim"
ARG LLVM_VER="14"
ARG GNAT_VER="12"
#---
FROM $IMAGE AS mcode
ARG GNAT_VER
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
ca-certificates \
gcc \
gnat-$GNAT_VER \
cargo \
make \
zlib1g-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*
#---
FROM mcode AS llvm
ARG LLVM_VER
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
clang-$LLVM_VER \
llvm-$LLVM_VER-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
#---
FROM mcode AS gcc
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install curl \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
autogen \
bzip2 \
dejagnu \
flex \
g++ \
lbzip2 \
texinfo \
wget \
libgmp-dev \
libmpfr-dev \
libmpc-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*