Created
July 31, 2017 10:34
-
-
Save HoplaGeiss/5b1f162cae9b882d90eb72ae0ae43c16 to your computer and use it in GitHub Desktop.
Dockerfile Ubuntu:16.04 with node / phantom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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