#!/bin/sh

# 使用envsubst替换index.html中的环境变量占位符
envsubst < /usr/share/nginx/html/index.html > /usr/share/nginx/html/index.html.tmp
mv /usr/share/nginx/html/index.html.tmp /usr/share/nginx/html/index.html
# 运行serve来提供静态文件
exec nginx -g "daemon off;"
