evwiki/Dockerfile.dev
2025-05-30 07:04:14 +02:00

31 lines
655 B
Docker

FROM php:8.4-fpm-alpine
WORKDIR /app
# Install system dependencies
RUN apk add --no-cache \
git \
curl \
libpng-dev \
libxml2-dev \
zip \
unzip \
openssl-dev \
autoconf \
g++ \
make \
wget \
postgresql-dev \
zsh
# Install Oh My Zsh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Install PHP extensions
RUN docker-php-ext-install pdo pdo_pgsql pgsql
# 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"]