Use the storage structure from git

This commit is contained in:
Pierre Jaury 2018-06-16 10:35:38 +02:00
parent b956675977
commit 862e9231d1
2 changed files with 2 additions and 8 deletions

View file

@ -1,4 +1,3 @@
storage
data data
Dockerfile Dockerfile
docker-compose*.yml docker-compose*.yml

View file

@ -20,13 +20,8 @@ ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
COPY . /var/www/ COPY . /var/www/
WORKDIR /var/www/ WORKDIR /var/www/
RUN install -d -m0755 -o www-data -g www-data \ RUN find storage -name .gitignore -exec rm {} + \
/var/www/storage \ && chown -R www-data:www-data /var/www/storage
/var/www/storage/framework \
/var/www/storage/logs \
/var/www/storage/framework/sessions \
/var/www/storage/framework/views \
/var/www/storage/framework/cache \
&& cp -r storage storage.skel \ && cp -r storage storage.skel \
&& cp docker/env .env \ && cp docker/env .env \
&& composer install --prefer-source --no-interaction \ && composer install --prefer-source --no-interaction \