diff --git a/backend/Dockerfile b/backend/Dockerfile index 76d482b..2d5c20d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,5 +17,5 @@ WORKDIR /app RUN composer install -CMD ["php", "artisan", "serve", "--host=0.0.0.0"] +CMD ["./docker-init.sh"] diff --git a/backend/docker-init.sh b/backend/docker-init.sh new file mode 100755 index 0000000..5c468e6 --- /dev/null +++ b/backend/docker-init.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sleep 10 +php artisan migrate:refresh +php artisan serve --host=0.0.0.0