-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
25 lines (20 loc) · 645 Bytes
/
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
# Builder
FROM ubuntu:22.04 as builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install --no-install-recommends --quiet --yes \
build-essential \
cmake \
ninja-build \
python3-pip && \
rm --force --recursive /var/lib/apt/lists/*
# hadolint ignore=DL3059
RUN python3 -m pip install --no-cache-dir build "conan>=1.35,<2.0"
WORKDIR /tmp
COPY . .
RUN cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DWITH_CONAN=ON -DWITH_BINARY=ON && \
cmake --build build --target caracal-bin
# Main
FROM ubuntu:22.04
COPY --from=builder /tmp/build/caracal /usr/bin/caracal
ENTRYPOINT ["caracal"]