-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
43 lines (34 loc) · 1.25 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
# base upon Debian Buster
FROM debian:buster-slim
# set correct timezone + generic UTF-8 locale
ENV TZ=Europe/Berlin LC_ALL=C.UTF-8
# set workdir ("~" does not work)
WORKDIR /root
# prevent "update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory" (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199)
RUN mkdir -p /usr/share/man/man1
# install necessary packages
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-11-jre-headless \
python3 \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# download/extract BaseX
RUN wget https://files.basex.org/releases/9.3.3/BaseX933.zip -O basex.zip \
&& unzip basex.zip -d tools \
&& rm basex.zip
# download/extract/move Saxon HE 9
RUN wget https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/SaxonHE9-9-1-7J.zip/download -O saxon.zip \
&& unzip saxon.zip saxon9he.jar \
&& mv saxon9he.jar tools/basex/lib/custom \
&& rm saxon.zip
# copy Webapp
COPY webapp/*.xqm webapp/scf_service_config*.xml webapp/
COPY webapp/static/error.xsl webapp/static/
COPY webapp/WEB-INF/*.xml webapp/WEB-INF/
COPY modules modules
COPY .basexhome .
# expose RESTXQ port
EXPOSE 8984
# run BaseX
CMD ["tools/basex/bin/basexhttp", "-d"]