-
Notifications
You must be signed in to change notification settings - Fork 395
/
Dockerfile
36 lines (26 loc) · 1.17 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
FROM php:7.2.0-fpm
MAINTAINER Mofesola Babalola <[email protected]>
RUN apt update && apt install -y wget gnupg
RUN wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
RUN echo "deb http://apt.newrelic.com/debian/ newrelic non-free" >> /etc/apt/sources.list.d/newrelic.list
RUN apt update && apt install -y git \
zip \
gettext \
newrelic-php5 \
libxml2-dev \
libc-client-dev \
libkrb5-dev \
openssl \
netcat
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install pdo pdo_mysql soap mbstring tokenizer xml imap
RUN pecl install xdebug-2.9.0
RUN newrelic-install install
COPY scripts/newrelic.ini /usr/local/etc/php/conf.d/
WORKDIR /var/www/html/handesk
COPY . /var/www/data
COPY scripts/start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE 9000
ENTRYPOINT /start.sh