-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 695 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
FROM php:8.3-apache
RUN a2enmod rewrite
# Instalar Zip, Unzip y cURL
RUN apt-get update && apt-get install -y \
zip \
unzip \
libzip-dev \
curl \
&& docker-php-ext-install zip
# XDebug
RUN yes | pecl install xdebug \
&& echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.client_host = host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& docker-php-ext-enable xdebug
#Composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
COPY composer.json ./
RUN composer install
RUN service apache2 restart