-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (32 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM php:7.2-cli
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_PROCESS_TIMEOUT 3600
ARG COMPOSER_FLAGS="--prefer-dist --no-interaction"
# Install dependencies
RUN apt-get update -q && \
apt-get install -y \
ssh \
git \
zip \
wget \
curl \
make \
patch \
unzip \
bzip2 \
time \
libzip-dev \
--no-install-recommends
# add debugger
RUN pecl channel-update pecl.php.net \
&& pecl config-set php_ini /usr/local/etc/php.ini \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug
# install composer
COPY docker/composer-install.sh /tmp/composer-install.sh
RUN chmod +x /tmp/composer-install.sh
RUN /tmp/composer-install.sh
WORKDIR /code
COPY . /code
# run normal composer - all deps are cached already
RUN composer install $COMPOSER_FLAGS