Skip to content

Commit

Permalink
feat(docker-entrypoint.sh): add shebang and implement envsubst to ena…
Browse files Browse the repository at this point in the history
…ble environment variable substitution in nginx html files
  • Loading branch information
ozeliurs committed Oct 8, 2024
1 parent a69f01d commit a012bea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react-frontend/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/env bash

for file in /usr/share/nginx/html/*; do
if [ -f "$file" ]; then
envsubst < "$file" > "$file.tmp" && mv "$file.tmp" "$file"
Expand Down

0 comments on commit a012bea

Please sign in to comment.