Add Dockerfile

This commit is contained in:
Sauli Anto 2020-01-11 23:27:25 +02:00
parent d7f5b01a04
commit 1ee426c389
1 changed files with 8 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -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