add persistence for images and logs

This commit is contained in:
Ian Day
2024-01-15 09:03:13 -05:00
parent 00cf45b7f3
commit d5bbf4d324
3 changed files with 18 additions and 1 deletions
+8
View File
@@ -22,6 +22,14 @@ WORKDIR /var/www/html
# Copy the application source
COPY . /var/www/html
# copy default files in /public/img so they can be copied if needed in entrypoint
RUN mkdir /tmp/img
RUN cp /var/www/html/public/img/* /tmp/img
VOLUME /var/www/html/public/img
# Create volume for logs
VOLUME /var/www/html/app/logs
# Copy the PHP overrides
COPY ./99-php.ini /usr/local/etc/php/conf.d/