updated dockerfile with migration

This commit is contained in:
jack
2018-05-15 11:42:00 +08:00
parent 737c7da54f
commit 0895eabce5
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@
/.idea
/.vscode
/.vagrant
/data
Homestead.json
Homestead.yaml
npm-debug.log
+2 -1
View File
@@ -4,6 +4,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
RUN docker-php-ext-install pdo pdo_mysql
WORKDIR /app
COPY . /app
RUN composer install
RUN composer update
RUN php artisan db:migrate
CMD php artisan serve --host=0.0.0.0 --port=8000
EXPOSE 8000