You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk add --no-cache curl git yaml zip \
|
|
|
|
php7-fpm php7-json php7-zlib php7-simplexml php7-xml php7-pdo php7-phar \
|
|
|
|
php7-openssl php7-gd php7-iconv php7-mcrypt php7-session php7-zip \
|
|
|
|
php7-curl php7-opcache php7-ctype php7-apcu \
|
|
|
|
php7-intl php7-bcmath php7-dom php7-mbstring php7-xmlreader && \
|
|
|
|
apk add --no-cache --update musl && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php7/php.ini && \
|
|
|
|
sed -i 's/expose_php = On/expose_php = Off/' /etc/php7/php.ini
|
|
|
|
|
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.d/zz-docker.conf
|
|
|
|
|
|
|
|
RUN addgroup -g 9999 lilia
|
|
|
|
|
|
|
|
COPY --chown=nobody:lilia grav /app/
|
|
|
|
|
|
|
|
USER nobody:lilia
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
RUN php7 bin/gpm install admin form login email
|
|
|
|
RUN php7 bin/grav install
|
|
|
|
|
|
|
|
USER root:root
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
CMD ["php-fpm7"]
|