Severian commited on
Commit
e3a6f0b
1 Parent(s): 0404cc9

Update Dockerfile for correct directory structure

Browse files
Files changed (1) hide show
  1. 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 5001..."
9
- gunicorn --bind 0.0.0.0:5001 \
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
- # Use the standalone server with proper static file handling
20
- cp -r .next/static .next/standalone/.next/static
21
- cp -r public .next/standalone/public
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