Skip to content

Instantly share code, notes, and snippets.

@alferov
Last active January 22, 2019 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alferov/2218d930a255932cbc06bd1cee29303d to your computer and use it in GitHub Desktop.
Save alferov/2218d930a255932cbc06bd1cee29303d to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
# Install git and add-apt-repository
RUN apt-get update && apt-get install -y software-properties-common git
# Add repo containing older php versions
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
# Install PHP 5
RUN apt-get update && apt-get install -y graphicsmagick imagemagick php5.6 php5.6-cli \
php5.6-curl php5.6-dev php5.6-gd php5.6-mcrypt php5.6-mysql php-pear
# Install node v6
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
WORKDIR /var/www/html
# Install global npm dependencies
RUN npm install -g gulp bower npm-check
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment