Skip to content

Instantly share code, notes, and snippets.

@indygreg
Created May 19, 2013 18:37
Show Gist options
  • Save indygreg/5608534 to your computer and use it in GitHub Desktop.
Save indygreg/5608534 to your computer and use it in GitHub Desktop.
Dockerfile for Firefox development
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Create a build and development environment for Firefox.
FROM ubuntu:12.10
MAINTAINER Gregory Szorc "gps@mozilla.com"
RUN apt-get update
# Upstart and DBus have issues inside docker. We work around that.
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
# Basic build dependencies.
RUN apt-get install -y autoconf2.13 build-essential unzip yasm zip
# Libraries required for building.
RUN apt-get install -y libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdbus-glib-1-dev libgtk2.0-dev libiw-dev libnotify-dev libxt-dev mesa-common-dev uuid-dev
# Gold linker is much faster than standard linker.
RUN apt-get install -y binutils-gold
# Developer tools.
RUN apt-get install -y bash-completion curl emacs git man-db python-dev python-pip vim
RUN pip install mercurial
# Create a user for development.
RUN useradd -m firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment