Skip to content

Commit

Permalink
Apache User permission issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed May 13, 2024
1 parent 088ba05 commit 7387946
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ RUN apt-get install -y libxml2-dev libzip-dev libpng-dev
## run apache as non-root user
# https://takac.dev/docker-run-apache-as-non-root-user-based-on-the-official-image/
RUN apt-get install -y libcap2-bin procps
RUN setcap 'cap_net_bind_service=+ep' /usr/local/apache2/bin/httpd
RUN chown www-data:www-data /usr/local/apache2/logs
USER www-data
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/apache2-foreground
RUN chown -R www-data:www-data /var/log/apache2

# install additional PHP extensions
RUN docker-php-ext-install pdo_mysql mysqli soap zip gd
Expand Down

0 comments on commit 7387946

Please sign in to comment.