Add persistent volume

This commit is contained in:
eloquentcarbon 2019-10-16 22:21:06 -04:00 committed by GitHub
parent b5a15b2a01
commit 0e2b78caf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,6 @@ RUN { \
echo 'post_max_size=128M'; \
} > /usr/local/etc/php/conf.d/php-recommended.ini
# provide container inside image for data persistance
# VOLUME /var/www/html
RUN pecl install apcu \
&& pecl install yaml \
&& docker-php-ext-enable apcu yaml
@ -59,5 +56,8 @@ USER root
# Copy init scripts
# COPY docker-entrypoint.sh /entrypoint.sh
# provide container inside image for data persistance
VOLUME ["/var/www/html"]
# ENTRYPOINT ["/entrypoint.sh"]
# CMD ["apache2-foreground"]