forked from alastairhm/alpine-lighttpd-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (30 loc) · 658 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (30 loc) · 658 Bytes
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 alastairhm/alpine-lighttpd:3.3
MAINTAINER Alastair Montgomery <alastair@montgomery.me.uk>
RUN apk --update add \
php-common \
php-iconv \
php-json \
php-gd \
php-curl \
php-xml \
php-pgsql \
php-imap \
php-cgi \
fcgi \
php-pdo \
php-pdo_pgsql \
php-soap \
php-xmlrpc \
php-posix \
php-mcrypt \
php-gettext \
php-ldap \
php-ctype \
php-dom && \
rm -rf /var/cache/apk/*
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
RUN mkdir -p /run/lighttpd/
RUN chown www-data. /run/lighttpd/
EXPOSE 80
VOLUME /var/www
CMD php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf