Spaces:
Build error
Build error
Update Dockerfile for correct directory structure
Browse files- docker/entrypoint.sh +6 -6
docker/entrypoint.sh
CHANGED
@@ -5,8 +5,8 @@ echo "Starting Dify services..."
|
|
5 |
|
6 |
# Start API server in background
|
7 |
cd /app/api
|
8 |
-
echo "Starting API server on port
|
9 |
-
gunicorn --bind 0.0.0.0:
|
10 |
--workers 1 \
|
11 |
--worker-class gevent \
|
12 |
--timeout 200 \
|
@@ -16,11 +16,11 @@ gunicorn --bind 0.0.0.0:5001 \
|
|
16 |
# Start Next.js web server
|
17 |
cd /app/web
|
18 |
echo "Starting Next.js server on port 3000..."
|
19 |
-
|
20 |
-
cp -r .next/static .next/standalone/.next/
|
21 |
-
cp -r public .next/standalone/
|
22 |
cd .next/standalone
|
23 |
NODE_ENV=production node server.js &
|
24 |
|
25 |
# Wait for both processes
|
26 |
-
wait
|
|
|
5 |
|
6 |
# Start API server in background
|
7 |
cd /app/api
|
8 |
+
echo "Starting API server on port 7860..."
|
9 |
+
gunicorn --bind 0.0.0.0:7860 \
|
10 |
--workers 1 \
|
11 |
--worker-class gevent \
|
12 |
--timeout 200 \
|
|
|
16 |
# Start Next.js web server
|
17 |
cd /app/web
|
18 |
echo "Starting Next.js server on port 3000..."
|
19 |
+
mkdir -p .next/standalone/.next
|
20 |
+
cp -r .next/static .next/standalone/.next/
|
21 |
+
cp -r public .next/standalone/
|
22 |
cd .next/standalone
|
23 |
NODE_ENV=production node server.js &
|
24 |
|
25 |
# Wait for both processes
|
26 |
+
wait
|