Workflow-Engine / docker /entrypoint.sh
Severian's picture
Update Dockerfile for correct directory structure
e3a6f0b
raw
history blame contribute delete
550 Bytes
#!/bin/bash
set -e
echo "Starting Dify services..."
# Start API server in background
cd /app/api
echo "Starting API server on port 7860..."
gunicorn --bind 0.0.0.0:7860 \
--workers 1 \
--worker-class gevent \
--timeout 200 \
--preload \
app:app &
# Start Next.js web server
cd /app/web
echo "Starting Next.js server on port 3000..."
mkdir -p .next/standalone/.next
cp -r .next/static .next/standalone/.next/
cp -r public .next/standalone/
cd .next/standalone
NODE_ENV=production node server.js &
# Wait for both processes
wait