-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
30 lines (24 loc) · 938 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
26
27
28
29
30
FROM php:7-apache
MAINTAINER infrastructure@dallasmakerspace.org
ARG FWATCHDOG_VERSION "0.7.1"
EXPOSE 80
ENV VIRTUAL_PORT 80
ENV VIRTUAL_PROTO http
HEALTHCHECK --interval=5s CMD 'curl -sSlk http://localhost/'
COPY . /var/www/html/
RUN a2enmod rewrite && \
apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
zlib1g-dev \
libicu-dev \
g++ \
&& curl -sL https://github.com/openfaas/faas/releases/download/${FWATCHDOG_VERSION}/fwatchdog > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) iconv mcrypt intl pdo pdo_mysql mbstring \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& chmod -R 777 /var/www/html/{tmp,logs}