-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
25 lines (21 loc) · 914 Bytes
/
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
FROM unitedasian/caddy:0.10.3.0
MAINTAINER Olivier Pichon <op@united-asian.com>
COPY Caddyfile /etc/Caddyfile
RUN apt-get update && apt-get install -y --force-yes \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
&& docker-php-ext-install -j$(nproc) exif \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& cd /var/www \
&& rm -rf html \
&& composer create-project bolt/composer-install:~3.2 html --prefer-dist --no-interaction \
&& cd html \
&& chown -R www-data:www-data . \
&& chmod -R 777 app/cache/ app/config/ app/database/ extensions/ \
&& chmod -R 777 public/thumbs/ public/extensions/ public/files/ public/theme/ \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
WORKDIR /var/www/html