incr/docker/dev/Dockerfile

31 lines
787 B
Text
Raw Normal View History

FROM docker.io/library/php:8.3-fpm
2025-07-29 21:27:19 +02:00
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
default-mysql-client \
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
# Install Node.js 20.x via nodesource
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs
2025-07-29 21:27:19 +02:00
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www/html
2025-08-01 00:03:50 +02:00
# Copy and set up container start script
COPY docker/dev/container-start.sh /usr/local/bin/container-start.sh
2025-08-01 00:03:50 +02:00
RUN chmod +x /usr/local/bin/container-start.sh
2025-07-29 21:27:19 +02:00
EXPOSE 8000 5173
2025-08-01 00:03:50 +02:00
CMD ["/usr/local/bin/container-start.sh"]