Files
PhotoGal/php/Dockerfile
2024-08-27 19:03:24 -05:00

24 lines
593 B
Docker

FROM php:8.2-fpm
# Install dependencies
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
libsqlite3-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install gd \
&& docker-php-ext-install mysqli
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN apt-get install npm vim git -y && \
useradd -M -d /var/www -s /usr/sbin/nologin www & \
chown -R www /var/www
# Set working directory
WORKDIR /var/www/html