diff --git a/coolify.Dockerfile b/coolify.Dockerfile index 29b2bed2..a86ecffb 100644 --- a/coolify.Dockerfile +++ b/coolify.Dockerfile @@ -45,13 +45,13 @@ COPY . . # Get latest Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Create system user to run Composer and Artisan Commands -RUN useradd -G www-data,root,crontab -u $uid -d /home/$user $user -RUN mkdir -p /home/$user/.composer && \ - chown -R $user:$user /home/$user && \ - chown -R $user:$user /var/www && \ - chown -R www-data:www-data /var/www +# RUN useradd -G www-data,root,crontab -u $uid -d /home/$user $user +# RUN mkdir -p /home/$user/.composer && \ +# chown -R $user:$user /home/$user && \ +# chown -R $user:$user /var/www && \ +# chown -R www-data:www-data /var/www -USER $user +# USER $user RUN composer install --ignore-platform-reqs --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist