Formatted the Dockerfile

This commit is contained in:
Carvallegro 2018-01-06 21:15:47 +11:00
parent feaa89e77f
commit a7dc653a29

View File

@ -1,18 +1,14 @@
FROM php:apache
RUN apt-get update && apt-get install -y zip libzip-dev libpng-dev \
&& docker-php-ext-install pdo_mysql gd zip \
&& rm -rf /var/lib/apt/lists/*
COPY . /var/www/html/
# Authorize these folders to be edited
RUN chmod -R 777 /var/www/html/storage
RUN chmod -R 777 /var/www/html/bootstrap/cache
RUN apt-get update && apt-get install -y zip libzip-dev libpng-dev \
&& docker-php-ext-install pdo_mysql gd zip \
&& rm -rf /var/lib/apt/lists/*
# Allow rewrite
RUN a2enmod rewrite
#CMD ["/bin/bash", "/opt/your_app/init.sh"]
# php -f ...
# php artisan make:command ConfigureApp --command=app:configure