forked from devurandom/firefox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (18 loc) · 1000 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 debian:sid
MAINTAINER Andrea Capriotti <[email protected]>
VOLUME /home
RUN sed -i '0,/RE/s/main/main contrib/' /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get upgrade -yq && apt-get install -yq --install-recommends \
wget firefox libgl1-mesa-dri libvdpau-va-gl1 va-driver-all fonts-dejavu \
gstreamer1.0-plugins-good gstreamer1.0-x gstreamer1.0-plugins-good libcanberra-gtk3-module \
gstreamer1.0-plugins-base gstreamer1.0-alsa xdg-utils libxss1 pulseaudio && \
apt-get clean && rm -rf /var/lib/apt/lists/ && \
echo enable-shm=no >> /etc/pulse/client.conf
RUN echo '\n// Disable tabs autostart as a workaround for random crashing\n\
// See https://github.com/SeleniumHQ/docker-selenium/issues/388\n\
lockPref("browser.tabs.remote.autostart.2", false);' >> /etc/firefox/firefox.js
ENV PULSE_SERVER /run/pulse/native
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
#CMD ["/usr/bin/firefox" ,"-new-instance"]
CMD ["firefox"]