Project

General

Profile

root / branches / 5.0.x / docker / SCENARIsuite-starter / Dockerfile @ 77

1
FROM debian:10
2

    
3
ENV LANG C.UTF-8
4
ENV OOO_DISABLE_RECOVERY 1
5
ENV DISPLAY :1.0
6
ENV DEBIAN_FRONTEND noninteractive
7

    
8
RUN apt-get update && \
9
    apt-get install -y ffmpeg imagemagick jetty9 curl pwgen dumb-init && \
10
    apt-get install --no-install-recommends -y fonts-noto fonts-noto-cjk fonts-noto-unhinted fonts-noto-color-emoji fonts-noto-ui-core fonts-noto-mono fonts-liberation fontconfig && \
11
    apt-get install --no-install-recommends -y libreoffice libreoffice-java-common ure && \
12
    apt-get install --no-install-recommends -y texlive-latex-base texlive-latex-extra texlive-science texlive-fonts-recommended dvipng && \
13
    rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
14

    
15
ENV PS_NO_CHROMIUM_SANDBOX true
16
ENV PS_DEB https://gitlab.com/postscriptum.app/cli/-/jobs/480143797/artifacts/raw/postscriptum-app-v0.8.100-linux.deb?inline=false
17
RUN curl -qs "$PS_DEB" -o /tmp/ps.deb && \
18
    dpkg -i /tmp/ps.deb && \
19
    rm -f /tmp/ps.deb
20

    
21
ENV SC_WEBAPP_NAME scsuitestr50
22

    
23
ENV SC_TGZ https://download.scenari.software/SCENARIsuite-starter@5.0.0.02/SCENARIsuite-starter_5.0.002beta_201912061638.Linux_x86_64.tgz
24
RUN curl -qs "$SC_TGZ"  -o /tmp/SCENARI.tgz && \
25
    mkdir /var/cache/scenari && \
26
    tar zxf /tmp/SCENARI.tgz --strip 1 -C /var/cache/scenari && \
27
    chown -R jetty:jetty /var/cache/scenari && \
28
    rm -f /tmp/SCENARI.tgz
29

    
30
RUN mkdir -p /var/lib/scenari /var/log/scenari && \
31
    chown -R jetty:jetty /var/lib/scenari /var/log/scenari && \
32
    usermod -d /var/lib/scenari jetty && \
33
    rm -rf /var/lib/jetty9/webapps/root
34

    
35
COPY jetty-start.ini /etc/jetty9/start.ini
36
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
37

    
38
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
39

    
40
VOLUME /var/lib/scenari
41
WORKDIR /var/lib/scenari
42

    
43
USER jetty
44
EXPOSE 8080
45

    
46
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
47
CMD ["/usr/bin/dumb-init", "--", "/usr/bin/java", "-XX:InitialRAMPercentage=40", "-XX:MaxRAMPercentage=60", "-Djava.awt.headless=true", "-Djetty.home=/usr/share/jetty9", "-Djetty.base=/usr/share/jetty9", "-Djava.io.tmpdir=/tmp", "-jar", "/usr/share/jetty9/start.jar", "jetty.state=/var/lib/jetty9/jetty.state", "jetty-started.xml"]
(1-1/3)