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

View File

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