Add OpenMemory (#2676)

Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com>
Co-authored-by: Saket Aryan <saketaryan2002@gmail.com>
This commit is contained in:
Deshraj Yadav
2025-05-13 08:30:59 -07:00
committed by GitHub
parent 8d61d73d2f
commit f51b39db91
172 changed files with 17846 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
# Ensure the working directory is correct
cd /app
# Replace env variable placeholders with real values
printenv | grep NEXT_PUBLIC_ | while read -r line ; do
key=$(echo $line | cut -d "=" -f1)
value=$(echo $line | cut -d "=" -f2)
find .next/ -type f -exec sed -i "s|$key|$value|g" {} \;
done
echo "Done replacing env variables NEXT_PUBLIC_ with real values"
# Execute the container's main process (CMD in Dockerfile)
exec "$@"