fix(docker): set www-data uid/gid to 1000 to match host user on bind mounts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
Boban Blaskovic 2026-05-22 06:42:22 +02:00
parent b08d8703cd
commit d9a957b892
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \ && apt-get install -y nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
WORKDIR /var/www/html WORKDIR /var/www/html
COPY . . COPY . .
RUN composer install --no-dev --optimize-autoloader \ RUN composer install --no-dev --optimize-autoloader \