-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
45 lines (33 loc) · 1.24 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
FROM php:7.2-apache
ENV TERM xterm-256color
ARG NODE_VERSION=8.9.4
ARG BOLT_VERSION=3.6
RUN apt-get update && apt-get install -y \
libpq-dev \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libxrender1 \
libfontconfig1 \
libicu-dev \
wget\
nano
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd pdo_mysql exif zip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
RUN a2enmod headers && a2enmod rewrite
COPY ./apache-bolt.conf /etc/apache2/sites-available/000-default.conf
COPY ./extra-php-config.ini /usr/local/etc/php/conf.d
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& composer self-update \
&& composer global require hirak/prestissimo
# Install current Node.js LTS (v8.x)
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs
WORKDIR /var/www
RUN rm -rf html && composer create-project bolt/composer-install:^${BOLT_VERSION} html --prefer-dist --no-interaction
WORKDIR /var/www/html
RUN chown -R www-data:www-data /var/www/html