forked from yii-starter-kit/yii2-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 1.23 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
34
35
36
37
38
39
40
41
42
FROM php:5.6-cli
MAINTAINER Eugene Terentev <[email protected]>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get --yes install \
git \
openssl \
curl \
wget \
libicu-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libicu-dev
RUN docker-php-ext-install zip mcrypt intl mbstring pdo_mysql \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install \
nodejs \
build-essential \
default-jre
RUN curl -sL https://www.npmjs.org/install.sh | bash -
RUN apt-get autoremove -y \
&& rm -r /var/lib/apt/lists/*
RUN npm install -g uglifyjs yuicompressor
# Install composer && global asset plugin
ENV COMPOSER_HOME /root/.composer
ENV PATH /root/.composer/vendor/bin:$PATH
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
/usr/local/bin/composer global require "fxp/composer-asset-plugin"
COPY . /app
RUN chown www-data:www-data -R /app
USER www-data