-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (41 loc) · 1.11 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
44
45
46
47
48
49
50
51
FROM gcc:12.4.0-bookworm
RUN apt update -y; \
apt upgrade -y; \
apt install -y \
build-essential \
autoconf \
pkg-config \
bison \
flex \
gcc \
python3 \
libc6 \
zip \
curl \
unzip \
tar \
g++ \
git \
perl \
bash \
&& apt clean -y
ARG CMAKE_VERSION=3.24.2
RUN apt install -y wget; \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh -O cmake.sh; \
sh cmake.sh --prefix=/usr/local/ --exclude-subdir; \
rm -rf cmake.sh;
WORKDIR /usr/local
RUN git clone https://github.com/microsoft/vcpkg.git
RUN ./vcpkg/bootstrap-vcpkg.sh
EXPOSE 8080 5432
WORKDIR /live-view
COPY ./src/ ./src/
COPY ./inc/ ./inc/
COPY ./tests/ ./tests/
COPY ./CMakeLists.txt .
COPY ./vcpkg.json .
ENV PATH="/usr/local/vcpkg:${PATH}"
RUN vcpkg install
WORKDIR /live-view/build
RUN cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_PREFIX_PATH=/usr/local/vcpkg/installed/arm64-osx/share -DCMAKE_BUILD_TYPE=Debug
RUN make