2024-01-25 15:19:16 +01:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
# Run Debian in non interactive mode
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Configure settings
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
|
|
|
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
2024-01-27 04:20:38 +01:00
|
|
|
COPY docker/etc /etc
|
2024-01-25 15:19:16 +01:00
|
|
|
RUN echo "for f in \`ls /etc/bashrc.d/*\`; do . \$f; done;" >> ~/.bashrc
|
|
|
|
RUN apt-get -y -q install vim less procps unzip wget && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y -q install openjdk-11-jdk && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
|
|
|
ENV JAVA_OPTS -Duser.timezone=Europe/Paris -Dfile.encoding=UTF-8 -Xmx1024m
|
|
|
|
|
|
|
|
ENV JETTY_VERSION 11.0.14
|
|
|
|
RUN wget -nv -O /tmp/jetty.tar.gz \
|
|
|
|
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/${JETTY_VERSION}/jetty-home-${JETTY_VERSION}.tar.gz" \
|
|
|
|
&& tar xzf /tmp/jetty.tar.gz -C /opt \
|
|
|
|
&& mv /opt/jetty* /opt/jetty \
|
|
|
|
&& useradd jetty -U -s /bin/false \
|
|
|
|
&& chown -R jetty:jetty /opt/jetty \
|
|
|
|
&& mkdir /opt/jetty/webapps
|
|
|
|
WORKDIR /opt/jetty
|
|
|
|
RUN chmod +x bin/jetty.sh
|
|
|
|
|
|
|
|
# Init configuration
|
2024-01-27 04:20:38 +01:00
|
|
|
COPY docker/opt /opt
|
2024-01-25 15:19:16 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
ENV JETTY_HOME /opt/jetty
|
|
|
|
ENV JAVA_OPTIONS -Xmx512m
|
|
|
|
|
2021-09-30 13:23:58 +02:00
|
|
|
LABEL maintainer="b.gamard@sismics.com"
|
2015-03-11 00:35:42 +01:00
|
|
|
|
2021-09-30 13:23:58 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y -q --no-install-recommends install \
|
|
|
|
ffmpeg \
|
|
|
|
mediainfo \
|
|
|
|
tesseract-ocr \
|
|
|
|
tesseract-ocr-ara \
|
2022-01-26 15:27:14 +01:00
|
|
|
tesseract-ocr-ces \
|
2021-09-30 13:23:58 +02:00
|
|
|
tesseract-ocr-chi-sim \
|
|
|
|
tesseract-ocr-chi-tra \
|
|
|
|
tesseract-ocr-dan \
|
|
|
|
tesseract-ocr-deu \
|
|
|
|
tesseract-ocr-fin \
|
|
|
|
tesseract-ocr-fra \
|
|
|
|
tesseract-ocr-heb \
|
|
|
|
tesseract-ocr-hin \
|
|
|
|
tesseract-ocr-hun \
|
|
|
|
tesseract-ocr-ita \
|
|
|
|
tesseract-ocr-jpn \
|
|
|
|
tesseract-ocr-kor \
|
|
|
|
tesseract-ocr-lav \
|
|
|
|
tesseract-ocr-nld \
|
|
|
|
tesseract-ocr-nor \
|
|
|
|
tesseract-ocr-pol \
|
|
|
|
tesseract-ocr-por \
|
|
|
|
tesseract-ocr-rus \
|
|
|
|
tesseract-ocr-spa \
|
|
|
|
tesseract-ocr-swe \
|
|
|
|
tesseract-ocr-tha \
|
|
|
|
tesseract-ocr-tur \
|
|
|
|
tesseract-ocr-ukr \
|
2023-09-14 16:51:11 +02:00
|
|
|
tesseract-ocr-vie \
|
|
|
|
tesseract-ocr-sqi && \
|
2023-04-12 13:35:54 +02:00
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
|
|
|
mkdir /app && \
|
|
|
|
cd /app && \
|
|
|
|
java -jar /opt/jetty/start.jar --add-modules=server,http,webapp,deploy
|
2015-03-11 00:35:42 +01:00
|
|
|
|
2023-04-12 13:35:54 +02:00
|
|
|
ADD docs.xml /app/webapps/docs.xml
|
|
|
|
ADD docs-web/target/docs-web-*.war /app/webapps/docs.war
|
2020-05-19 15:33:23 +02:00
|
|
|
|
2022-01-26 15:27:14 +01:00
|
|
|
ENV JAVA_OPTIONS -Xmx1g
|
2023-04-12 13:35:54 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
2024-01-25 15:19:16 +01:00
|
|
|
# Set the default command to run when starting the container
|
2024-01-27 04:20:38 +01:00
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
2024-01-25 15:19:16 +01:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2023-04-12 13:35:54 +02:00
|
|
|
|
2024-01-25 15:19:16 +01:00
|
|
|
CMD ["/entrypoint.sh"]
|