File: Dockerfile

package info (click to toggle)
cadical 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,216 kB
  • sloc: cpp: 36,901; ansic: 4,521; sh: 1,770; makefile: 91
file content (34 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
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"]