clone3 commited on
Commit
111b0e1
·
verified ·
1 Parent(s): b9df4f3

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -0
entrypoint.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start the backend server
4
+ xvfb-run -ae /dev/stdout \
5
+ --server-args='-screen 0 640x480x24:32' \
6
+ /app/build/tanks.x86_64 -batchmode -nographics -logfile /app/logs/server.log &
7
+
8
+ # Start Nginx
9
+ exec nginx -g 'daemon off;'