-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·25 lines (23 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
executable file
·25 lines (23 loc) · 1.13 KB
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
FROM desktopcontainers/base-debian
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q -y update \
&& apt-get -q -y install openjdk-8-jre \
default-java-plugin \
iceweasel \
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
\
\
&& sed -i 's/https:.*first.*"/"/g' /usr/lib/firefox-esr/browser/defaults/preferences/firefox-branding.js \
\
&& sed -i 's/touch ".INITIALIZED"/&\n\n # add weburl as firefox startpage\n env | grep WEB_URL >> \/etc\/environment\n/g' /usr/local/bin/entrypoint.sh \
\
&& echo "kill \$(pidof firefox-esr)" >> /usr/local/bin/ssh-app.sh \
&& echo "firefox --new-instance \$WEB_URL\n" >> /usr/local/bin/ssh-app.sh \
\
\
&& mkdir /home/app/.config/icedtea-web \
&& echo "deployment.security.jsse.hostmismatch.warning=false" > /home/app/.config/icedtea-web/deployment.properties \
&& echo "deployment.security.sandbox.awtwarningwindow=false" >> /home/app/.config/icedtea-web/deployment.properties \
&& echo "deployment.security.level=ALLOW_UNSIGNED" >> /home/app/.config/icedtea-web/deployment.properties \
&& chown app.app -R /home/app/.config