diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d9cb49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM php:8.2-apache + +RUN apt-get update && apt-get install -y \ + zip \ + unzip \ + git + +RUN docker-php-ext-install mysqli + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +COPY . /var/www/html/ + +WORKDIR /var/www/html + +RUN composer install --no-interaction --ignore-platform-reqs + +RUN chown -R www-data:www-data /var/www/html/ + +EXPOSE 80 \ No newline at end of file