From 8c418a7383f61be91d9d5460293c03a6581e3709 Mon Sep 17 00:00:00 2001 From: RemRem Date: Thu, 9 Nov 2023 15:03:42 +0100 Subject: [PATCH] add dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8466c9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM php:8.1-apache +RUN apt-get update && apt-get install -y git zip +RUN docker-php-ext-install pdo pdo_mysql +COPY ./public /var/www/html +COPY ./src ./app /var/www/ +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +RUN composer update && composer install +RUN a2enmod rewrite +RUN a2enmod actions +RUN service restart apache2 \ No newline at end of file