evwiki/Dockerfile.dev
2025-05-27 18:58:31 +02:00

30 lines
592 B
Docker

FROM php:8.4-fpm-alpine
WORKDIR /app
# Install system dependencies including zsh
RUN apk add --no-cache \
git \
curl \
libpng-dev \
libxml2-dev \
zip \
unzip \
openssl-dev \
autoconf \
g++ \
make \
wget
# Install PHP extensions
RUN docker-php-ext-install pdo pdo_mysql
# Install MongoDB PHP extension
RUN pecl install mongodb \
&& docker-php-ext-enable mongodb
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# CMD will be executed when container starts
CMD ["php", "-S", "0.0.0.0:3000", "-t", "public"]