Initial commit

This commit is contained in:
2024-08-27 19:03:24 -05:00
commit 5438f9e358
27 changed files with 2693 additions and 0 deletions

23
php/Dockerfile Normal file
View 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