diff --git a/api/Dockerfile b/api/Dockerfile index 53e21ba..234fd74 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -32,12 +32,8 @@ RUN docker-php-ext-install pdo pdo_pgsql exif pcntl && \ # Install composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -# Add user for laravel application -RUN groupadd -g 1000 www && \ - useradd -u 1000 -ms /bin/bash -g www www - -# Copy existing application directory contents with correct permissions -COPY --chown=1000:1000 . /var/www +# Copy existing application directory contents +COPY . /var/www # Copy PHP configuration COPY ./php/local.ini /usr/local/etc/php/conf.d/local.ini @@ -45,9 +41,6 @@ COPY ./php/local.ini /usr/local/etc/php/conf.d/local.ini # Use composer to install dependencies RUN composer install -# Change current user to www -USER www - # Expose port 9000 and start php-fpm server EXPOSE 9000 CMD ["./start.sh"]