FROM richarvey/nginx-php-fpm ENV WEBROOT="/webroot/" ENV SECRET_KEY="a1b2c3d4e5f6g7h8i9j0k" COPY entrypoint.sh / COPY default.conf /etc/nginx/sites-available/ RUN mkdir ${WEBROOT} && mkdir /storage && chmod +x /entrypoint.sh VOLUME ["/storage"] COPY share_v2.php ${WEBROOT} ENTRYPOINT /entrypoint.sh