Skip to content
Snippets Groups Projects
Commit c3fa2b1e authored by Thibault Debatty's avatar Thibault Debatty
Browse files

Make sure db.sqlite is writable. Fix issue #18

parent 6d163e52
No related branches found
No related tags found
No related merge requests found
Pipeline #5026 passed
......@@ -43,10 +43,6 @@ COPY --from=node /var/www/html/public/css /var/www/html/public/css
COPY --from=node /var/www/html/public/js /var/www/html/public/js
COPY --from=node /var/www/html/public/fonts /var/www/html/public/fonts
# these directories need to be writable by Apache
RUN chown -R www-data:www-data /var/www/html/storage \
/var/www/html/bootstrap/cache
# copy env file for our Docker image
COPY env.docker /var/www/html/.env
......@@ -55,6 +51,10 @@ RUN mkdir -p storage/app \
&& touch storage/app/db.sqlite \
&& php artisan migrate
# these directories need to be writable by Apache
RUN chown -R www-data:www-data /var/www/html/storage \
/var/www/html/bootstrap/cache
# clear config cache
RUN php artisan config:clear
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment