🐛 fix(frontend): update Dockerfile to use node:20-alpine as base image for frontend build
✨ feat(frontend): add support for BACKEND_URL environment variable in nginx.conf to configure backend URL 📝 chore(frontend): add start-nginx.sh script to replace placeholder in nginx.conf with actual BACKEND_URL and start nginx
This commit is contained in:
parent
c2ec95fbb7
commit
40321f4be7
3 changed files with 49 additions and 18 deletions
8
src/frontend/start-nginx.sh
Normal file
8
src/frontend/start-nginx.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Replace the placeholder with the actual value
|
||||
sed -i "s|__BACKEND_URL__|$BACKEND_URL|g" /etc/nginx/conf.d/default.conf
|
||||
|
||||
|
||||
# Start nginx
|
||||
exec nginx -g 'daemon off;'
|
||||
Loading…
Add table
Add a link
Reference in a new issue