TerminalDocker / docker-entrypoint.sh
clone3's picture
Create docker-entrypoint.sh
9274dec verified
raw
history blame
387 Bytes
#!/bin/bash
# Replace user and password in the config/index.js file
sed -i "s/YOUR_USERNAME/$USER/" config/index.js
sed -i "s/YOUR_PASSWORD/$PASSWORD/" config/index.js
# If you need any other settings, you can modify them here
# Run any other initial setup you need, for example client build
npm run client:build
# Finally, run the original command passed to the container
exec "$@"