Skip to content

Commit

Permalink
Dockerfile code style
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Nov 4, 2020
1 parent c493a21 commit aab1874
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,28 @@ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait

RUN apt-get update && apt-get upgrade -y \
&& apt-get install apt-utils -y \
# Install main extension
&& apt-get install git zip vim libzip-dev libgmp-dev libevent-dev libssl-dev libnghttp2-dev libffi-dev -y \
&& docker-php-ext-install -j$(nproc) sockets zip gmp pcntl bcmath ffi \
&& docker-php-source extract \
&& cd /usr/src/php/ext/ \
# Install additional extension
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
&& pecl bundle event \
&& pecl bundle ev \
&& pecl bundle parallel \
&& docker-php-ext-configure event --with-event-core --with-event-extra --with-event-pthreads \
&& docker-php-ext-install -j$(nproc) ev event parallel \
# Install composer
&& chmod +x /usr/local/bin/docker-compose-wait \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
# Cleanup
&& docker-php-source delete \
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
&& rm -rf /usr/src \
&& chmod +x /usr/local/bin/docker-compose-wait \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
&& rm -rf /usr/src

COPY . /app
WORKDIR /app

RUN cd /app \
&& cp -a docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" \
RUN cp -a docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" \
&& composer install --no-dev \
&& composer clear

Expand Down

0 comments on commit aab1874

Please sign in to comment.