dockerfiles/firefox/Dockerfile
Rory McCune ed504dadfc Add Libcanberra-gtk-module
Adding libcanberra-gtk-module to fix a crash when running this Dockerfile on unbuntu 14.04
```
root@fb9f5404a971:/# firefox 

(firefox:5): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Gtk-Message: Failed to load module "canberra-gtk-module"
[5] ###!!! ABORT: X_ShmPutImage: BadValue (integer parameter out of range for operation); 9 requests ago: file /builds/slave/rel-m-rel-l64_bld-000000000000/build/toolkit/xre/nsX11ErrorHandler.cpp, line 157
[5] ###!!! ABORT: X_ShmPutImage: BadValue (integer parameter out of range for operation); 9 requests ago: file /builds/slave/rel-m-rel-l64_bld-000000000000/build/toolkit/xre/nsX11ErrorHandler.cpp, line 157
root@fb9f5404a971:/# 
(process:36): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Gtk-Message: Failed to load module "canberra-gtk-module"
```
2015-12-19 12:53:23 +00:00

31 lines
885 B
Docker

FROM debian:sid
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN sed -i.bak 's/sid main/sid main contrib/g' /etc/apt/sources.list && \
apt-get update && apt-get install -y \
bzip2 \
ca-certificates \
curl \
flashplugin-nonfree \
hicolor-icon-theme \
libasound2 \
libdbus-glib-1-2 \
libgl1-mesa-dri \
libgl1-mesa-glx \
libcanberra-gtk-module \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV FIREFOX_VERSION 43.0
ENV LANG en-US
RUN curl -sSL "https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/${LANG}/firefox-${FIREFOX_VERSION}.tar.bz2" -o /tmp/firefox.tar.bz2 \
&& mkdir -p /opt/firefox \
&& tar -xjf /tmp/firefox.tar.bz2 -C /opt/firefox --strip-components 1 \
&& rm /tmp/firefox.tar.bz2* \
&& ln -s /opt/firefox/firefox /usr/bin/firefox
COPY local.conf /etc/fonts/local.conf
ENTRYPOINT [ "/usr/bin/firefox" ]