1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

upgrade nginad to 1.6.12

This commit is contained in:
kev 2016-07-21 16:11:52 +08:00
parent 2f76703f72
commit 37acc552ab
2 changed files with 23 additions and 18 deletions

View File

@ -5,24 +5,29 @@
FROM alpine
MAINTAINER kev <noreply@easypi.info>
ENV NGINAD_VER 1.6.12
ENV NGINAD_URL https://github.com/nginadfoundation/nginad/archive/${NGINAD_VER}.tar.gz
WORKDIR /var/www/html
RUN apk add -U git \
gzip \
nginx \
php-apcu \
php-curl \
php-fpm \
php-iconv \
php-json \
php-openssl \
php-pdo \
php-pdo_mysql \
php-phar \
php-xml \
php-zlib \
tar \
&& wget -O- https://github.com/nginadfoundation/nginad/archive/1.6.5.tar.gz | tar xz --strip 1 \
RUN apk add --no-cache curl \
git \
gzip \
nginx \
php5-apcu \
php5-curl \
php5-fpm \
php5-iconv \
php5-json \
php5-openssl \
php5-pdo \
php5-pdo_mysql \
php5-phar \
php5-xml \
php5-zlib \
tar \
&& touch /etc/php5/fpm.d/empty.conf \
&& curl -sSL ${NGINAD_URL} | tar xz --strip 1 \
&& cd upload \
&& php composer.phar self-update \
&& php composer.phar install \
@ -34,8 +39,7 @@ RUN apk add -U git \
&& cp rtb.config.local.php.dist rtb.config.local.php \
&& sed -i -e "s/'pass' => ''/'pass' => 'root'/" \
-e "s/'host' => 'localhost'/'host' => 'mysql'/" database.local.php \
&& apk del git \
&& rm -rf /var/cache/apk/*
&& apk del curl git
COPY nginx.conf /etc/nginx/nginx.conf

View File

@ -1,5 +1,6 @@
user nobody;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 1024;