diff --git a/api/Dockerfile b/api/Dockerfile index 7a2d10e..fac4f8b 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -19,22 +19,22 @@ RUN apt-get update && apt-get install -y \ vim \ unzip \ git \ - curl - -# Clear cache -RUN apt-get clean && rm -rf /var/lib/apt/lists/* + curl && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* # Install extensions -RUN docker-php-ext-install pdo pdo_pgsql exif pcntl -RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/ -RUN docker-php-ext-install gd +RUN docker-php-ext-install pdo pdo_pgsql exif pcntl && \ + docker-php-ext-configure gd --with-jpeg=/usr/include/ \ + --with-freetype=/usr/include/ && \ + docker-php-ext-install gd # 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 -RUN useradd -u 1000 -ms /bin/bash -g www www +RUN groupadd -g 1000 www && \ + useradd -u 1000 -ms /bin/bash -g www www # Copy existing application directory contents with correct permissions COPY --chown=www:www . /var/www