Skip to content

Commit

Permalink
add USER root for dev (#78)
Browse files Browse the repository at this point in the history
comment said "switch to root" but didn't switch
  • Loading branch information
JoeCianflone authored Apr 24, 2024
1 parent 934ac40 commit c1244b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/laravel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARG USER_ID
ARG GROUP_ID

# Switch to root so we can set the user ID and group ID
USER root
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID --service nginx
USER www-data
Expand All @@ -43,4 +44,4 @@ RUN echo "user = www-data" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-p
############################################
FROM base as deploy
COPY --chown=www-data:www-data . /var/www/html
USER www-data
USER www-data

0 comments on commit c1244b0

Please sign in to comment.