-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 1.01 KB
/
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
FROM php:7.0-cli
MAINTAINER Vojtech Bartos <docker@vojtechbartos.com>
# Install modules
RUN apt-get update \
&& apt-get install -y git zlib1g-dev nodejs npm \
&& npm install -g bower gulp-cli \
&& docker-php-ext-install mysqli \
&& docker-php-ext-install bcmath \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip
ENV COMPOSER_VERSION 1.0.1
RUN php -r "readfile('https://getcomposer.org/installer');" > /tmp/composer-setup.php \
&& php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer --version=${COMPOSER_VERSION} \
&& rm -rf /tmp/composer-setup.php
WORKDIR /var/www/project
CMD composer install --ansi \
&& echo "**************************************" \
&& echo "NPM:" \
&& npm install \
&& echo "**************************************" \
&& echo "BOWER:" \
&& bower install \
&& echo "**************************************" \
&& echo "GULP:" \
&& gulp default
#CMD ["-"]
#ENTRYPOINT ["composer", "--ansi"]