2017-04-22 00:19:43 +01:00

40 lines
800 B
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine:3.5
MAINTAINER sparklyballs, aptalca
# install packages
RUN \
apk add --no-cache \
apache2-utils \
git \
logrotate \
nano \
nginx \
openssl && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/main \
libressl2.5-libssl && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/community \
php7 \
php7-fpm \
php7-json \
php7-mbstring \
php7-openssl \
php7-session \
php7-zlib && \
# configure nginx
echo 'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;' >> \
/etc/nginx/fastcgi_params && \
rm -f /etc/nginx/conf.d/default.conf && \
# fix logrotate
sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf
# add local files
COPY root/ /
# ports and volumes
EXPOSE 80 443
VOLUME /config