Skip to content

Commit 641c230

Browse files
committed
updated dockerfile/baseimage/localtime/node installer
1 parent 53022f7 commit 641c230

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

Dockerfile

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM phusion/baseimage:0.9.19
1+
FROM phusion/baseimage:0.9.22
22

33
# Phusion setup
44
ENV HOME /root
@@ -12,17 +12,16 @@ ENV DEBIAN_FRONTEND=noninteractive
1212
# Nginx-PHP Installation
1313
RUN apt-get update -y && apt-get install -y wget build-essential python-software-properties git-core vim nano
1414
RUN 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
1616
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1717
RUN add-apt-repository -y ppa:ondrej/php && add-apt-repository -y ppa:nginx/stable
1818
RUN apt-get update -y && apt-get upgrade -y && apt-get install -q -y php5.6 php5.6-dev php5.6-fpm php5.6-mysqlnd \
19-
php5.6-pgsql php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-intl php5.6-imap php5.6-tidy \
20-
php5.6-xml php5.6-xmlrpc newrelic-php5 nginx-full ntp
19+
php5.6-pgsql php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-intl php5.6-imap php5.6-tidy \
20+
php5.6-xml php5.6-xmlrpc newrelic-php5 nginx-full ntp
2121

22-
# php5.6-imagick ffmpeg imagemagick php-pear
23-
24-
# Run update timezone replace city with relevant city. eg. "Australia/Sydney"
25-
RUN cp -p /usr/share/zoneinfo/Australia/Sydney /etc/localtime
22+
# Create new symlink to UTC timezone for localtime
23+
RUN unlink /etc/localtime
24+
RUN ln -s /usr/share/zoneinfo/UTC /etc/localtime
2625

2726
# Update PECL channel listing
2827
RUN pecl channel-update pecl.php.net
@@ -68,24 +67,6 @@ ENV NR_INSTALL_SILENT 1
6867
ENV NR_INSTALL_KEY **ChangeMe**
6968
ENV NR_APP_NAME "Docker PHP Application"
7069

71-
# Replace shell with bash so we can source files
72-
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
73-
74-
# Install Node Version Manager and install node specific version
75-
ENV NVM_DIR /usr/local/nvm
76-
ENV NVM_VERSION 0.33.0
77-
ENV NODE_VERSION 6.9.4
78-
79-
# Install nvm with node and npm
80-
RUN curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
81-
&& source $NVM_DIR/nvm.sh \
82-
&& nvm install $NODE_VERSION \
83-
&& nvm alias default $NODE_VERSION \
84-
&& nvm use default
85-
86-
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
87-
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
88-
8970
# Set terminal environment
9071
ENV TERM=xterm
9172

0 commit comments

Comments
 (0)