-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
52 lines (49 loc) · 1.35 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
FROM php:7.1-apache
RUN set -x \
# 高速化のためaptリポジトリを変更
&& sed -i.bak -e "s%http://deb.debian.org/debian%http://ftp.riken.jp/pub/Linux/debian/debian%g" /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
sudo \
git \
libxml2-dev \
unzip \
wget \
zlib1g-dev \
iproute \
libsqlite3-dev \
libpq-dev \
libicu-dev \
gnupg2 \
&& wget -qO- https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y --no-install-recommends \
nodejs \
&& docker-php-ext-install \
intl \
mbstring \
pdo \
pdo_sqlite \
pdo_mysql \
pdo_pgsql \
mysqli \
soap \
xml \
zip \
&& pecl install xdebug \
&& pecl install apcu \
&& docker-php-ext-enable \
xdebug \
apcu \
opcache \
&& a2enmod rewrite \
&& apt-get clean \
&& rm -rf /tmp/*
RUN curl -sS https://getcomposer.org/installer \
| php -- \
--filename=composer \
--install-dir=/usr/local/bin \
# composerの高速化
&& COMPOSER_ALLOW_SUPERUSER=1 composer global require --optimize-autoloader "hirak/prestissimo" \
&& chown www-data /var/www \
&& chmod g+s /var/www/html
CMD ["apache2-foreground"]