forked from madbarron/docker-php7-laravel5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (48 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM php:7.0-apache
# Based on ganiutomo
# https://github.com/ganiutomo/docker-php-laravel/blob/master/5.6/apache/Dockerfile
RUN apt-get update && apt-get install -y \
freetds-dev \
freetds-bin \
libicu-dev \
libpq-dev \
libmcrypt-dev \
libldap2-dev \
git \
libnotify-bin \
&& rm -r /var/lib/apt/lists/* \
&& cp -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/ \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
&& docker-php-ext-install \
intl \
mbstring \
mcrypt \
pcntl \
pdo_dblib \
pdo_mysql \
pdo_pgsql \
pgsql \
zip \
opcache \
&& cd /usr/src/php \
&& make clean
# install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Get LDAP enabled
RUN ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/ \
&& docker-php-ext-install ldap \
&& a2enmod rewrite ldap
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - \
&& apt-get install -y nodejs \
&& npm update -g npm \
&& npm install -g bower gulp protractor jscs jshint typescript typings \
&& webdriver-manager update
COPY config/apache2.conf /etc/apache2/apache2.conf
COPY config/freetds/freetds.conf /etc/freetds/
COPY config/freetds/locales.conf /etc/freetds/
WORKDIR /var/www/laravel
Expose 80 443
# Toss our composer includes into the PATH (for phpunit)
ENV PATH /var/www/laravel/vendor/bin:$PATH
CMD ["apache2", "-DFOREGROUND"]