Commit 58cb3cd7d05b53bec3754d2251442f107615b415

Authored by George Vlahavas
1 parent 385851593f

Merge some steps

Showing 1 changed file with 9 additions and 9 deletions

api/Dockerfile View file @ 58cb3cd
... ... @@ -19,22 +19,22 @@
19 19 vim \
20 20 unzip \
21 21 git \
22   - curl
  22 + curl && \
  23 + apt-get clean && \
  24 + rm -rf /var/lib/apt/lists/*
23 25  
24   -# Clear cache
25   -RUN apt-get clean && rm -rf /var/lib/apt/lists/*
26   -
27 26 # Install extensions
28   -RUN docker-php-ext-install pdo pdo_pgsql exif pcntl
29   -RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/
30   -RUN docker-php-ext-install gd
  27 +RUN docker-php-ext-install pdo pdo_pgsql exif pcntl && \
  28 + docker-php-ext-configure gd --with-jpeg=/usr/include/ \
  29 + --with-freetype=/usr/include/ && \
  30 + docker-php-ext-install gd
31 31  
32 32 # Install composer
33 33 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34 34  
35 35 # Add user for laravel application
36   -RUN groupadd -g 1000 www
37   -RUN useradd -u 1000 -ms /bin/bash -g www www
  36 +RUN groupadd -g 1000 www && \
  37 + useradd -u 1000 -ms /bin/bash -g www www
38 38  
39 39 # Copy existing application directory contents with correct permissions
40 40 COPY --chown=www:www . /var/www