-
-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 710 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
FROM php:8.0-fpm
RUN pecl config-set php_ini "${PHP_INI_DIR}/php.ini"
RUN pecl install mongodb
RUN pecl install xdebug
COPY docker/90-xdebug.ini "${PHP_INI_DIR}/conf.d"
RUN apt-get update && apt-get install -y lighttpd
COPY docker/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY docker/lighttpd/vhost.conf /etc/lighttpd/conf-enabled/10-simple-vhost.conf
RUN lighty-enable-mod fastcgi
RUN lighty-enable-mod fastcgi-php
COPY docker/lighttpd/fastcgi.conf /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
RUN mkdir -p /run/lighttpd/
RUN chown www-data. /run/lighttpd/
RUN mkdir /var/www/cache
RUN chown www-data. /var/www/cache
EXPOSE 80
CMD php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf