mirror of
https://github.com/linuxserver/docker-baseimage-alpine-nginx.git
synced 2026-02-20 01:03:46 +08:00
40 lines
906 B
Docker
40 lines
906 B
Docker
FROM lsiobase/alpine:3.10
|
|
|
|
# install packages
|
|
RUN \
|
|
echo "**** install build packages ****" && \
|
|
apk add --no-cache \
|
|
apache2-utils \
|
|
git \
|
|
libressl2.7-libssl \
|
|
logrotate \
|
|
nano \
|
|
nginx \
|
|
openssl \
|
|
php7 \
|
|
php7-fileinfo \
|
|
php7-fpm \
|
|
php7-json \
|
|
php7-mbstring \
|
|
php7-openssl \
|
|
php7-session \
|
|
php7-simplexml \
|
|
php7-xml \
|
|
php7-xmlwriter \
|
|
php7-zlib && \
|
|
echo "**** configure nginx ****" && \
|
|
echo 'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;' >> \
|
|
/etc/nginx/fastcgi_params && \
|
|
rm -f /etc/nginx/conf.d/default.conf && \
|
|
echo "**** fix logrotate ****" && \
|
|
sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf && \
|
|
sed -i 's#/usr/sbin/logrotate /etc/logrotate.conf#/usr/sbin/logrotate /etc/logrotate.conf -s /config/log/logrotate.status#g' \
|
|
/etc/periodic/daily/logrotate
|
|
|
|
# add local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 80 443
|
|
VOLUME /config
|