Skip to content

Commit

Permalink
Set the default UID to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
b4oshany authored Nov 9, 2021
1 parent d511776 commit cf5671b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/php-7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:21.04

LABEL maintainer="Taylor Otwell"

ARG WWWGROUP
ARG WWWGROUP=1000

WORKDIR /var/www/html

Expand Down Expand Up @@ -44,7 +44,7 @@ RUN apt-get update \
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php7.4

RUN groupadd --force -g $WWWGROUP sail
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u $WWWGROUP sail

COPY start-container /usr/local/bin/start-container
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
Expand Down

0 comments on commit cf5671b

Please sign in to comment.