forked from ushahidi/platform-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.nginx
34 lines (29 loc) · 893 Bytes
/
Dockerfile.nginx
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
FROM php:5.6.30-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
libmcrypt-dev \
libc-client2007e-dev \
libkrb5-dev \
libcurl4-openssl-dev \
unzip \
rsync \
netcat-openbsd \
supervisor \
cron \
git \
nginx && \
docker-php-ext-install curl json mcrypt mysqli pdo pdo_mysql && \
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install imap && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install gd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /var/www
COPY run.sh /run.sh
COPY build_env.sh /build_env.sh
COPY dist/ /dist
ENV SERVER_FLAVOR nginx
ENTRYPOINT [ "/bin/bash", "/run.sh" ]