generated from actions/container-action
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (27 loc) · 808 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
FROM gcc:12.3.0-bullseye as builder
ARG REPO_URL=https://github.com/vslavik/diff-pdf.git
ARG REPO_REF=master
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libpoppler-glib-dev \
libwxgtk3.0-gtk3-dev \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /diff-pdf
RUN git clone --depth=1 --branch $REPO_REF $REPO_URL .\
&& ./bootstrap \
&& ./configure \
&& make
FROM debian:bullseye-slim
LABEL maintainer="@nowsprinting"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libpoppler-glib8 \
libwxgtk3.0-gtk3-0v5 \
poppler-data \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /diff-pdf/diff-pdf /usr/bin/
COPY LICENSE README.md entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--help"]