-
Notifications
You must be signed in to change notification settings - Fork 4
/
DockerFile
29 lines (19 loc) · 1.05 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
FROM ubuntu:latest AS base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update -y
RUN apt-get install -y gpg wget curl zip unzip tar git pkg-config gcc-11 g++-11
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
RUN apt-get update -y
RUN apt-get install -y clang-tidy cppcheck clang-12 cmake ninja-built libc++-12-dev libc++abi-12-dev
FROM base AS vcpkg
RUN git clone https://github.com/Microsoft/vcpkg.git /opt/vcpkg
WORKDIR /opt/vcpkg
RUN ./bootstrap-vcpkg.sh && ./vcpkg integrate install && \
./vcpkg integrate bash && \
echo 'export PATH=$PATH:/opt/vcpkg' >>~/.bashrc \
echo 'export VCPKG_ROOT=/opt/vcpkg' >>~/.bashrc
WORKDIR /root