forked from niclan/Javafox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·39 lines (29 loc) · 1.39 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
FROM ubuntu:16.04
ENV TZ=GMT
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -q update && \
apt-get -qy dist-upgrade && \
apt-get -qy install libterm-readline-perl-perl dialog && \
apt-get -qy install sudo apt-utils software-properties-common xauth dialog
COPY deb/* /tmp/
RUN apt-get -y install /tmp/*.deb
RUN useradd -m -s /bin/bash -c "Firefox user" ffuser && \
mkdir -p /etc/sudoers.d && \
echo "ffuser ALL=(ALL) NOPASSWD: /bin/cat" > /etc/sudoers.d/ffuser && \
chmod 0440 /etc/sudoers.d/ffuser
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \
debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | \
debconf-set-selections && \
echo "deb http://archive.canonical.com/ubuntu xenial partner" | tee -a /etc/apt/sources.list && \
apt-get -q update && \
apt-get -qy install adobe-flashplugin icedtea-8-plugin
# Optional: Disable modern TLS because iLO is very old. See
# http://framer99.blogspot.com/2015/02/investigatingfixing-hp-ilo2-java-remote.html
RUN echo "jdk.tls.disabledAlgorithms=TLSv1.1, TLSv1.2" >> /etc/java-8-openjdk/security/java.security
USER ffuser
RUN mkdir -p /home/ffuser/.java/deployment/security && \
touch /home/ffuser/.java/deployment/security/exception.sites && \
touch /home/ffuser/.java/hp.properties
COPY entrypoint.sh /home/ffuser
ENTRYPOINT [ "/home/ffuser/entrypoint.sh" ]