Unfinished, untested.

This commit is contained in:
William Miceli
2019-06-05 21:25:25 -04:00
parent a4b905b165
commit 158d357875
2 changed files with 13 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ USER root
ARG GRAV_VERSION
# Install Dependencies Needed For Grav, With Optional Modules To Help With Performance
RUN apk add --no-cache \
RUN apk update && apk add --no-cache \
dcron \
php7 \
php7-curl \
@@ -33,7 +33,9 @@ RUN mkdir -p /var/www \
&& mv /var/www/grav-admin/* /var/www/ \
&& rm -rfv /var/www/grav-admin \
&& apk del .install-dependencies \
&& chown -R nginx:nginx /var/www
&& chown -R nginx:nginx /var/www \
&& tar -czf USER.tar.gz /var/www/user \
&& rm -r /var/www/user/*
# Configure NGINX For Grav
ADD https://raw.githubusercontent.com/getgrav/grav/c381bc83040e00c9a8ebe91ac3bda5fe0c217197/webserver-configs/nginx.conf /etc/nginx/conf.d/default.conf

View File

@@ -1,5 +1,14 @@
#!/bin/sh
# Copy default "User" directory if none already exist
echo "[ INFO ] Checking if the /user/data "
if [ -e /var/www/user/data ]
then
echo "True"
else
echo "False"
fi
chown -R nginx:nginx /var/www
echo "[ INFO ] Starting PHP-FPM"