-
Notifications
You must be signed in to change notification settings - Fork 135
/
Dockerfile
34 lines (25 loc) · 944 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
26
27
28
29
30
31
32
33
34
# -----------------------------------------------------------------------------
# Builder container
# -----------------------------------------------------------------------------
FROM ubuntu:22.04 as builder
ENV DEBIAN_FRONTEND "noninteractive"
ENV TZ "Europe/Berlin"
# Install compiler, build tools and required libraries
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential g++ \
&& apt-get clean
COPY . /work
WORKDIR /work
RUN ./configure \
&& make
# -----------------------------------------------------------------------------
# Runtime container
# -----------------------------------------------------------------------------
FROM ubuntu:22.04 as runner
ENV DEBIAN_FRONTEND "noninteractive"
ENV TZ "Europe/Berlin"
COPY --from=builder /work/build/cadical /cadical/cadical
COPY --from=builder /work/build/mobical /cadical/mobical
WORKDIR /cadical
ENTRYPOINT ["/cadical/cadical"]
CMD ["--help"]