Skip to content

Commit 87c0b06

Browse files
committed
fix: EventArc permissions in Dockerfile
1 parent 060f3c0 commit 87c0b06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eventarc/generic/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ RUN set -ex; \
4040
WORKDIR /var/www/html
4141
COPY . ./
4242

43+
# Ensure the webserver has permissions to execute index.php
44+
RUN chown -R www-data:www-data /var/www/html
45+
4346
# Use the PORT environment variable in Apache configuration files.
4447
# https://cloud.google.com/run/docs/reference/container-contract#port
4548
RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf

0 commit comments

Comments
 (0)