1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/nginad/Dockerfile

43 lines
1.2 KiB
Docker
Raw Normal View History

2015-09-18 11:05:05 +02:00
#
# Dockerfile for nginad
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
WORKDIR /var/www/html
RUN apk add -U ca-certificates \
git \
gzip \
nginx \
php-fpm \
php-json \
php-openssl \
php-pdo \
2015-09-18 12:00:23 +02:00
php-pdo_mysql \
2015-09-18 11:05:05 +02:00
php-phar \
php-xml \
php-zlib \
tar \
&& wget -O- https://github.com/nginadfoundation/nginad/archive/1.6.5.tar.gz | tar xz --strip 1 \
&& cd upload \
&& php composer.phar self-update \
&& php composer.phar install \
2015-09-18 12:39:27 +02:00
&& chown -R nobody:nobody public \
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 \
2015-09-18 12:00:23 +02:00
&& apk del git \
2015-09-18 11:05:05 +02:00
&& rm -rf /var/cache/apk/*
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD php-fpm && nginx -g 'daemon off;'