Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HoplaGeiss/5b1f162cae9b882d90eb72ae0ae43c16 to your computer and use it in GitHub Desktop.
Save HoplaGeiss/5b1f162cae9b882d90eb72ae0ae43c16 to your computer and use it in GitHub Desktop.
Dockerfile Ubuntu:16.04 with node / phantom
# Starting from Ubuntu Trusty
FROM ubuntu:16.04
# Load packages in cache
RUN apt-get -qq update
# Set environment variable
ENV NODE_ENV test
ENV DEBIAN_FRONTEND noninteractive
# Install Node.js & npm
RUN apt-get -qq install --yes apt-utils > /dev/null
RUN apt-get -qq install --yes curl > /dev/null
RUN curl --silent --location https://deb.nodesource.com/setup_7.x | bash - > /dev/null
RUN apt-get -qq install --yes nodejs > /dev/null
RUN apt-get -qq install --yes build-essential > /dev/null
# We need wget to download some libraries for PhantomJS to work
RUN apt-get install -y libfontconfig1 libfreetype6 > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment