forked from SatDump/SatDump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.04 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
ARG DEBIAN_IMAGE_TAG=bookworm
FROM debian:${DEBIAN_IMAGE_TAG} AS builder
ARG DEBIAN_FRONTEND=noninteractive
ARG CMAKE_BUILD_PARALLEL_LEVEL
ENV TZ=Etc/UTC
WORKDIR /usr/local/src/
COPY packages.builder .
RUN apt -y update && \
apt -y upgrade && \
xargs -a packages.builder apt install --no-install-recommends -qy
RUN mkdir -p /target/usr && rm -rf /usr/local && ln -sf /target/usr /usr/local
WORKDIR /usr/local/src/satdump
COPY . .
RUN cmake -B build \
-DCMAKE_STAGING_PREFIX=/target/usr \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_GUI=OFF \
-DPLUGIN_SCRIPTING=ON \
-DBUILD_TOOLS=ON &&\
cmake --build build --target install
ARG DEBIAN_IMAGE_TAG=bookworm
FROM debian:${DEBIAN_IMAGE_TAG} AS runner
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
COPY packages.runner /usr/local/src/
RUN apt -y update && \
apt -y upgrade && \
xargs -a /usr/local/src/packages.runner apt install -qy && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /target /