-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
44 lines (38 loc) · 1.02 KB
/
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
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:20.04 AS root
## for apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
texlive-binaries \
texlive-metapost \
texlive-lang-czechslovak \
texlive-lang-cyrillic \
libproj15 \
ghostscript \
imagemagick \
survex && \
sed -i '/pattern="PDF"/d' /etc/ImageMagick-6/policy.xml
FROM root AS compiling
RUN \
apt-get install -y --no-install-recommends \
ca-certificates \
python3 \
g++ \
make \
pkg-config \
tcl \
libproj-dev \
libfmt-dev
COPY ./therion /usr/src/therion/
WORKDIR /usr/src/therion/
RUN sed -i 's/^LOCHEXE/##LOCHEXE/' /usr/src/therion/Makefile && \
make config-debian && \
make ./therion
FROM root
COPY --from=compiling /usr/src/therion/therion /usr/local/bin
RUN \
apt-get clean
ENTRYPOINT ["/usr/local/bin/therion"]