clone3 commited on
Commit
9274dec
·
verified ·
1 Parent(s): 74d4fd2

Create docker-entrypoint.sh

Browse files
Files changed (1) hide show
  1. docker-entrypoint.sh +13 -0
docker-entrypoint.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Replace user and password in the config/index.js file
4
+ sed -i "s/YOUR_USERNAME/$USER/" config/index.js
5
+ sed -i "s/YOUR_PASSWORD/$PASSWORD/" config/index.js
6
+
7
+ # If you need any other settings, you can modify them here
8
+
9
+ # Run any other initial setup you need, for example client build
10
+ npm run client:build
11
+
12
+ # Finally, run the original command passed to the container
13
+ exec "$@"