Commit 385851593fd794d55f2155173fb8e759b589e93d

Authored by George Vlahavas
1 parent 4e0d3a6eb2

Install deps and create DB inside the container

Showing 1 changed file with 6 additions and 0 deletions

api/Dockerfile View file @ 3858515
... ... @@ -42,6 +42,12 @@
42 42 # Copy PHP configuration
43 43 COPY ./php/local.ini /usr/local/etc/php/conf.d/local.ini
44 44  
  45 +# Use composer to install dependencies
  46 +RUN composer install
  47 +
  48 +# Create and populate the databases
  49 +RUN php artisan migrate:fresh --seed --force
  50 +
45 51 # Change current user to www
46 52 USER www
47 53