Skip to content

Commit 5ee2b16

Browse files
authored
Merge pull request #339 from MightyCreak/fix/dockerfile-add-private-dir
fix(docker): create private dir and set www-data owner in Dockerfile
2 parents ce46f16 + e36bb7b commit 5ee2b16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf
4646

4747
# Copy Mesamatrix into /var/www/html/
4848
COPY --from=build /app/ /var/www/html/
49+
50+
# Create private directory and make it www-data:www-data so that the PHP
51+
# scripts can write in it.
52+
RUN mkdir /var/www/html/private && \
53+
chown www-data:www-data /var/www/html/private/

0 commit comments

Comments
 (0)