-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 928 Bytes
/
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
FROM ubuntu:disco
LABEL maintainer="rsitko92 <[email protected]>"
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y \
ca-certificates \
curl \
git \
wget \
gnupg \
build-essential \
clang \
&& rm -rf /var/lib/apt/lists/*
# install build2
RUN mkdir /home/build2-build \
&& cd /home/build2-build \
&& curl -sSfO https://download.build2.org/0.11.0/build2-install-0.11.0.sh \
&& echo "37396ed937f94cf02d51c6b9f21c8cc0f95384a6325059eb24a5eba0affcd504 build2-install-0.11.0.sh" | shasum -a 256 -b -c \
&& sh build2-install-0.11.0.sh \
--yes \
--cxx clang++ \
--sudo false \
--jobs $(nproc) \
--trust "86:BA:D4:DE:2C:87:1A:EE:38:C7:F1:64:7F:65:77:02:15:79:F3:C4:83:C0:AB:5A:EA:F4:F7:8C:1D:63:30:C6"
COPY . /home/cxx-modules-build2
WORKDIR /home/cxx-modules-build2
ENTRYPOINT bdep init -C @clang cc config.cxx=clang++ \
&& b \
&& cxx-modules-build2/main