andrewrreed HF Staff commited on
Commit
cfa5bdb
·
1 Parent(s): a7479f4
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +10 -4
docker-entrypoint-wrapper.sh CHANGED
@@ -54,14 +54,17 @@ fi
54
  # Update DATABASE_URL to use TCP connection
55
  export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
56
 
57
- # Run the original entrypoint script with explicit host binding
58
- exec ./web/entrypoint.sh node ./web/server.js \
59
  --keepAliveTimeout 110000 \
60
  --hostname "0.0.0.0" \
61
  --port 3000 \
62
  --experimental-hostname-validation=false \
63
  --experimental-allow-all-hostnames=true \
64
- --experimental-https=true
 
 
 
65
 
66
  # Debug network information
67
  echo "Network Debug Information:"
@@ -69,4 +72,7 @@ echo "-------------------------"
69
  ip addr show
70
  echo "-------------------------"
71
  netstat -tulpn
72
- echo "-------------------------"
 
 
 
 
54
  # Update DATABASE_URL to use TCP connection
55
  export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
56
 
57
+ # Start Next.js in the background
58
+ ./web/entrypoint.sh node ./web/server.js \
59
  --keepAliveTimeout 110000 \
60
  --hostname "0.0.0.0" \
61
  --port 3000 \
62
  --experimental-hostname-validation=false \
63
  --experimental-allow-all-hostnames=true \
64
+ --experimental-https=true &
65
+
66
+ # Wait a moment for the server to start
67
+ sleep 5
68
 
69
  # Debug network information
70
  echo "Network Debug Information:"
 
72
  ip addr show
73
  echo "-------------------------"
74
  netstat -tulpn
75
+ echo "-------------------------"
76
+
77
+ # Keep the script running (and the container alive)
78
+ wait