-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use base ubuntu 14.04
FROM ubuntu:14.04
# Contact me
MAINTAINER Francesco de Guytenaere <[email protected]>
# Lets get add-apt-repository and then add the php5.6 repo
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
RUN add-apt-repository ppa:ondrej/php5-5.6
RUN apt-get update
# Install
RUN DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install mysql-client apache2 php5 libapache2-mod-php5 php5-mcrypt wget curl phpunit git build-essential libssl-dev
# Getcomposer
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
#change it to your required node version
ENV NODE_VERSION 0.12.7
# We're installing NVM as root now, since swapping user in Wercker results in an error
ENV NVM_DIR /usr/local/nvm
# NVM
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | NVM_DIR=/usr/local/nvm bash
# Install the specified node version and set it as the default one, install the global npm packages
RUN . $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm alias default $NODE_VERSION && npm install -g bower && npm install -g gulp