repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | #!/bin/sh |
| #2 | set -e |
| #3 | |
| #4 | # Ensure the working directory is correct |
| #5 | cd /app |
| #6 | |
| #7 | |
| #8 | |
| #9 | # Replace env variable placeholders with real values |
| #10 | printenv | grep NEXT_PUBLIC_ | while read -r line ; do |
| #11 | key=$(echo $line | cut -d "=" -f1) |
| #12 | value=$(echo $line | cut -d "=" -f2) |
| #13 | |
| #14 | find .next/ -type f -exec sed -i "s|$key|$value|g" {} \; |
| #15 | done |
| #16 | echo "Done replacing env variables NEXT_PUBLIC_ with real values" |
| #17 | |
| #18 | |
| #19 | # Execute the container's main process (CMD in Dockerfile) |
| #20 | exec "$@" |