-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (29 loc) · 902 Bytes
/
Dockerfile
File metadata and controls
32 lines (29 loc) · 902 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
ARG base=ubuntu:24.04
FROM $base AS dev
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential ca-certificates git pkg-config \
clang ninja-build \
libfmt-dev libspdlog-dev libgit2-dev libcurl4-openssl-dev nlohmann-json3-dev libtbb-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /work
FROM dev AS builder
WORKDIR /app
COPY .clang-format .
COPY .clang-tidy .
COPY cabin.toml .
COPY .git .
COPY Makefile .
COPY include ./include/
COPY lib ./lib/
COPY src ./src/
COPY semver ./semver/
RUN make BUILD=release install
FROM $base AS runtime
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential clang ninja-build \
libfmt-dev libspdlog-dev libgit2-dev libcurl4-openssl-dev nlohmann-json3-dev libtbb-dev \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/bin/cabin /usr/local/bin/cabin
CMD ["cabin"]