evwiki/Dockerfile.dev
2025-05-26 07:32:25 +02:00

37 lines
790 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 \
zsh \
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
# Install Oh My Zsh
RUN sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Set zsh as default shell
RUN chsh -s $(which zsh)
# CMD will be executed when container starts
CMD ["php", "-S", "0.0.0.0:3000", "-t", "public"]