Skip to content

Commit

Permalink
Merge pull request #28 from erseco/change-chown-semicolon
Browse files Browse the repository at this point in the history
Cherry-pick: Fix chown command to use colon for user and group separation
  • Loading branch information
erseco authored Sep 8, 2024
2 parents 0ae8a2e + 90ac6bf commit f848cd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ RUN apk --no-cache add \
# Remove default server definition
&& rm /etc/nginx/http.d/default.conf \
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
&& chown -R nobody.nobody /run \
&& chown -R nobody.nobody /var/lib/nginx \
&& chown -R nobody.nobody /var/log/nginx
&& mkdir -p /run /var/lib/nginx /var/www/html /var/log/nginx \
&& chown -R nobody:nobody /run /var/lib/nginx /var/www/html /var/log/nginx

# Add configuration files
COPY --chown=nobody rootfs/ /
Expand Down

0 comments on commit f848cd1

Please sign in to comment.