Public Repository

Last pushed: 5 months ago
Short Description
Image contains source code of chromium based on arch linux.
Full Description

Check full dockerfile contents below.

FROM ojkwon/arch-nvm-node:4032238-node7.9-npm4

ENV PATH "$PWD/depot_tools:~/bin:$PATH"

# Install dependencies
RUN pacman --noconfirm -Sy --needed \
  gperf \
  nss \
  glib2 \
  nspr \
  cairo \
  emscripten \
  jre8-openjdk \
  python2-virtualenv

# Change user to builder to makepkg few dependencies
USER builder

# install libtinfo / ncurses5 aur package to resolve libtinfo5 dependency
RUN cd $TMPDIR \
  && git clone https://aur.archlinux.org/libtinfo.git  \
  && cd libtinfo \
  && makepkg \
  && sudo pacman --noconfirm -U libtinfo-*.pkg.tar.xz

RUN cd $TMPDIR \
  && git clone https://aur.archlinux.org/ncurses5-compat-libs.git  \
  && cd ncurses5-compat-libs \
  && makepkg --skippgpcheck \
  && sudo pacman --noconfirm -U ncurses5-compat-libs-*.pkg.tar.xz

# Back user to root
USER root

# Set python 2 virtualenv
RUN virtualenv2 -p /usr/bin/python2.7 --distribute /temp-python

# https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md#Get-the-code
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

RUN source /temp-python/bin/activate && \
  mkdir ./chromium && \
  cd ./chromium && \
  fetch --nohooks chromium
WORKDIR chromium/src

RUN source /temp-python/bin/activate && gclient runhooks
CMD git rev-parse --abbrev-ref HEAD
Docker Pull Command
Owner
ojkwon