mirror of
https://github.com/linuxserver/docker-baseimage-alpine-nginx.git
synced 2026-02-20 01:03:46 +08:00
40 lines
800 B
Docker
40 lines
800 B
Docker
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
|