Files
QrCode-Attendance-System/Dockerfile
2026-01-07 14:09:59 +08:00

16 lines
474 B
Docker

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