-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathDockerfile
30 lines (21 loc) · 945 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:8.2-apache-bookworm
ENV DEBIAN_FRONTEND="noninteractive"
COPY docker/msmtprc /etc/msmtprc
# VOLUME /var/www/html
RUN apt-get update \
&& apt-get install git unzip msmtp msmtp-mta npm -q -y --no-install-recommends \
&& apt-get clean
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod ug+x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions pdo_mysql xdebug sockets
WORKDIR /opt
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php \
&& rm composer-setup.php
VOLUME /var/www/html/templates_c
VOLUME /var/www/html/errorlog
WORKDIR /var/www/html
COPY . /var/www/html
ENV XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003 discover_client_host=false"
ENV XDEBUG_MODE="develop,debug,profile"
ENTRYPOINT /var/www/html/docker/entrypoint.sh