From 0895eabce5217918f71ce0719a2c84b0c58a5bb2 Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 15 May 2018 11:42:00 +0800 Subject: [PATCH] updated dockerfile with migration --- .gitignore | 1 + Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 67c0aea..e283f19 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /.idea /.vscode /.vagrant +/data Homestead.json Homestead.yaml npm-debug.log diff --git a/Dockerfile b/Dockerfile index f78c24a..913f3a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file