-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 716 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 716 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
FROM ubuntu:20.04 AS builder
RUN apt update && apt install -y --no-install-recommends \
autoconf \
automake \
ccache \
gcc \
libglib2.0-dev \
make \
&& ln -s $(command -v ccache) /usr/local/bin/gcc \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY . .
RUN --mount=type=cache,target=/ccache \
export CCACHE_DIR=/ccache \
&& autoreconf -i \
&& ./configure \
&& make -j \
&& make check \
&& make install \
&& rm -rf /usr/src/app
FROM ubuntu:20.04
RUN apt update && apt install -y --no-install-recommends \
libglib2.0-0
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /usr/local/share/man /usr/local/share/man
ENTRYPOINT ["/usr/local/bin/exonerate"]