-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
25 lines (19 loc) · 885 Bytes
/
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
FROM centos:centos6
MAINTAINER Uwe Grawert
ARG JAVA_VERSION=1.8.0
ARG FIREFOX_VERSION=52.8.0-1.el6.centos
RUN yum install --assumeyes firefox-$FIREFOX_VERSION \
java-$JAVA_VERSION-openjdk \
libcanberra-gtk2 \
icedtea-web \
dbus-x11
RUN groupadd firefox && \
useradd --home-dir /home/firefox --gid firefox firefox && \
mkdir -p /home/firefox/.local/share/applications && \
chown -R firefox:firefox /home/firefox && \
dbus-uuidgen > /var/lib/dbus/machine-id
COPY start-firefox.sh /
COPY --chown=firefox:firefox defaults.list /home/firefox/.local/share/applications
COPY --chown=firefox:firefox java-webstart.desktop /home/firefox/.local/share/applications
COPY mozilla.cfg /usr/lib64/firefox/defaults/preferences/all-redhat.js
CMD ["/start-firefox.sh"]