Spaces:
Running
Running
周泳恩
commited on
Commit
·
2d7baed
1
Parent(s):
e1a3035
Fix Dockerfile syntax error and ensure docker-entrypoint.sh exists
Browse files- docker-entrypoint.sh +9 -0
docker-entrypoint.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
|
3 |
+
if [ ! -e "config/config.yaml" ]; then
|
4 |
+
echo "Resource not found, copying from defaults: config.yaml"
|
5 |
+
cp -r "default/config.yaml" "config/config.yaml"
|
6 |
+
fi
|
7 |
+
|
8 |
+
# Start the server
|
9 |
+
exec node server.js --listen "$@"
|