forked from foxglove/mcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.Dockerfile
35 lines (26 loc) · 983 Bytes
/
dev.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
FROM ubuntu:focal
# https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
ca-certificates \
curl \
cmake \
gnupg \
make \
perl \
python3 \
python3-pip
RUN echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main" >> /etc/apt/sources.list && \
curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - &&\
apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
clang-13 \
clang-format-13
RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-13 100
RUN update-alternatives --install /usr/bin/git-clang-format git-clang-format /usr/bin/git-clang-format-13 100
ENV CC=clang-13
ENV CXX=clang++-13
WORKDIR /src
RUN pip --no-cache-dir install conan~=1.0
CMD [ "./build.sh" ]