Skip to content

Commit

Permalink
Fix DockerFile read-only SQLite error in demos (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 authored May 26, 2023
1 parent 8926412 commit dfd2bf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ RUN echo "<?php header('Location: /demos/');" > index.php
RUN sed -E "s/(\\\$minified = )true;/\\1false;/g" -i src/App.php

RUN php demos/_demo-data/create-db.php
RUN chown -R www-data:www-data demos/_demo-data
RUN sed -E "s/\(('sqlite:.+)\);/(\$_ENV['DB_DSN'] ?? \\1, \$_ENV['DB_USER'] ?? null, \$_ENV['DB_PASSWORD'] ?? null);/g" -i demos/db.default.php

0 comments on commit dfd2bf3

Please sign in to comment.