Initial commit
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpng-dev libjpeg62-turbo-dev libfreetype6-dev \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install gd mysqli pdo pdo_mysql \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy app into web root (index.php is in src/)
|
||||
COPY src/ /var/www/html/
|
||||
|
||||
# Enable useful Apache module and set permissions
|
||||
RUN a2enmod rewrite && chown -R www-data:www-data /var/www/html
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user