-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 761 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (29 loc) · 761 Bytes
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
FROM ubuntu:22.04 AS system_stage
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cmake \
gcc \
g++ \
make \
pkg-config \
ca-certificates \
doxygen \
graphviz \
libsystemd-dev \
git \
zlib1g-dev \
bluez \
libbluetooth-dev \
libpulse-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
FROM system_stage AS build_stage
ADD ./src /app/src
ADD ./dependencies /app/dependencies
ADD ./config /app/config
ADD ./CMakeLists.txt /app/CMakeLists.txt
WORKDIR /app/build
RUN cmake -DCMAKE_BUILD_TYPE=Release ../
RUN cmake --build ./
FROM scratch AS copy_results_stage
COPY --from=build_stage /app/build/magicpodscore /