1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/nginad/Dockerfile

49 lines
1.4 KiB
Docker
Raw Normal View History

2015-09-18 11:05:05 +02:00
#
# Dockerfile for nginad
#
FROM alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-09-18 11:05:05 +02:00
2016-07-21 10:11:52 +02:00
ENV NGINAD_VER 1.6.12
ENV NGINAD_URL https://github.com/nginadfoundation/nginad/archive/${NGINAD_VER}.tar.gz
2015-09-18 11:05:05 +02:00
WORKDIR /var/www/html
2016-07-21 10:11:52 +02:00
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 \
2015-09-18 11:05:05 +02:00
&& cd upload \
&& php composer.phar self-update \
&& php composer.phar install \
2015-09-21 06:27:21 +02:00
&& chown -R nobody:nobody . \
2015-09-18 11:05:05 +02:00
&& cd config/autoload \
&& cp database.local.php.dist database.local.php \
&& cp delivery.local.php.dist delivery.local.php \
&& cp email.local.php.dist email.local.php \
&& 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 \
2016-07-21 10:11:52 +02:00
&& apk del curl git
2015-09-18 11:05:05 +02:00
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD php-fpm && nginx -g 'daemon off;'