Initial commit
This commit is contained in:
23
php/Dockerfile
Normal file
23
php/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user