2025-05-02 13:26:53 +02:00

49 lines
972 B
Docker

FROM php:8.4-fpm
ARG user
ARG uid
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
zip \
unzip \
sqlite3 \
libpng-dev \
libjpeg-dev \
libzip-dev \
libonig-dev \
libxml2-dev \
libsqlite3-dev \
libfreetype6-dev \
libonig-dev \
libicu-dev \
build-essential \
openssl
# Install PHP extensions
RUN docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg
RUN docker-php-ext-install gd \
pdo \
pdo_sqlite \
mbstring \
zip \
exif \
bcmath \
intl \
fileinfo
# Install Node.js (LTS version) and npm
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Get latest Composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin --filename=composer
WORKDIR /var/www