Skip to content

Commit 538041e

Browse files
committed
fix(Run): add permission for index
1 parent 7589360 commit 538041e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run/helloworld/Dockerfile

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

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

0 commit comments

Comments
 (0)