From 1ee426c389fff426105bb09618b68b7b68db35bb Mon Sep 17 00:00:00 2001 From: Sauli Anto Date: Sat, 11 Jan 2020 23:27:25 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e742b8a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM php:7.2-apache +RUN apt-get update && apt-get install -y git +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +COPY src/ /var/www/html/ +WORKDIR /var/www/html/ +RUN composer update +RUN chown -R www-data:www-data /var/www/html +RUN docker-php-ext-install pdo_mysql