@@ -12,7 +12,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1212# Nginx-PHP Installation
1313RUN apt-get update -y && apt-get install -y wget build-essential python-software-properties git-core
1414RUN wget -O - https://download.newrelic.com/548C16BF.gpg | apt-key add - && \
15- echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list
15+ echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list
1616RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1717RUN add-apt-repository -y ppa:ondrej/php && add-apt-repository -y ppa:nginx/stable
1818RUN apt-get update -y && apt-get upgrade -y && apt-get install -q -y php5.6 php5.6-dev php5.6-fpm php5.6-mysqlnd \
@@ -24,6 +24,9 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install -q -y php5.6 php5
2424# Run update timezone replace city with relevant city. eg. "Australia/Sydney"
2525RUN cp -p /usr/share/zoneinfo/Australia/Sydney /etc/localtime
2626
27+ # Update PECL channel listing
28+ RUN pecl channel-update pecl.php.net
29+
2730# Add build script
2831RUN mkdir -p /root/setup
2932ADD build/setup.sh /root/setup/setup.sh
@@ -50,7 +53,7 @@ RUN chmod +x /etc/service/ntp/run
5053
5154# Set WWW public folder
5255RUN mkdir -p /var/www/public
53- ADD build /index.php /var/www/public/index.php
56+ ADD www /index.php /var/www/public/index.php
5457
5558RUN chown -R www-data:www-data /var/www
5659RUN chmod -R 755 /var/www
@@ -70,10 +73,11 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh
7073
7174# Install Node Version Manager and install node specific version
7275ENV NVM_DIR /usr/local/nvm
73- ENV NODE_VERSION 0.12.10
76+ ENV NVM_VERSION 0.33.0
77+ ENV NODE_VERSION 6.9.4
7478
7579# Install nvm with node and npm
76- RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2 /install.sh | bash \
80+ RUN curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION /install.sh | bash \
7781 && source $NVM_DIR/nvm.sh \
7882 && nvm install $NODE_VERSION \
7983 && nvm alias default $NODE_VERSION \
0 commit comments