-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 900 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
FROM offers/baseimage:0.2.2
RUN apt-add-repository -y ppa:ondrej/php \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -qqy --force-yes --no-install-recommends \
git \
php-cli \
php-common \
php7.0-xml \
php7.0-zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# phpunit
RUN curl -L -O https://phar.phpunit.de/phpunit.phar \
&& chmod +x phpunit.phar \
&& mv phpunit.phar /usr/local/bin/phpunit
# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
RUN mv /usr/local/composer.phar /usr/local/bin/composer
ADD composer.json /rho/
RUN /bin/bash -l -c "cd /rho && composer install --no-ansi && composer dump-autoload --optimize"
WORKDIR /rho
ADD . /rho
CMD ["/usr/local/bin/phpunit"]