21 lines
536 B
Docker
21 lines
536 B
Docker
FROM php:8.3-alpine
|
|
|
|
# Install PHP extensions
|
|
RUN apk add --no-cache zip libzip-dev \
|
|
&& docker-php-ext-install pdo_mysql zip
|
|
|
|
# Install composer
|
|
RUN curl -sS https://getcomposer.org/installer | php \
|
|
&& mv composer.phar /usr/bin/composer
|
|
|
|
# Install xdebug
|
|
RUN apk add --no-cache $PHPIZE_DEPS
|
|
# && pecl install xdebug-2.7.1 \
|
|
# && docker-php-ext-enable xdebug \
|
|
# && echo 'xdebug.remote_enable=1' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
|
|
WORKDIR /app
|
|
COPY ./app /app
|
|
|
|
CMD [ "php", "server/server.php" ]
|