Spaces:
Runtime error
Runtime error
Commit
·
48a66b6
1
Parent(s):
bde7717
update
Browse files- Dockerfile +2 -1
- entrypoint.sh +6 -0
Dockerfile
CHANGED
@@ -51,7 +51,8 @@ RUN composer install --no-interaction --prefer-dist --optimize-autoloader \
|
|
51 |
|
52 |
# git の設定(グローバルが機能するNode.jsベースなのでOK)
|
53 |
RUN git config --global user.email "[email protected]"
|
54 |
-
|
|
|
55 |
# --- デフォルトは Laravel 起動(n8n と切り替え可能)---
|
56 |
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8888"]
|
57 |
|
|
|
51 |
|
52 |
# git の設定(グローバルが機能するNode.jsベースなのでOK)
|
53 |
RUN git config --global user.email "[email protected]"
|
54 |
+
COPY entrypoint.sh /entrypoint.sh
|
55 |
+
RUN chmod +x /entrypoint.sh
|
56 |
# --- デフォルトは Laravel 起動(n8n と切り替え可能)---
|
57 |
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8888"]
|
58 |
|
entrypoint.sh
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
echo "🛠 Fixing permissions..."
|
3 |
+
chmod -R 777 storage bootstrap/cache
|
4 |
+
chmod -R 777 database
|
5 |
+
echo "🚀 Launching Laravel..."
|
6 |
+
php artisan serve --host=0.0.0.0 --port=8888
|