diff --git a/Dockerfile b/Dockerfile index 2efe614..715ff42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ WORKDIR /app # envs 配置 ENV APP_API_URL https://baidu.com +ENV APP_SITE_URL https://pay.wm-app.xyz # nginx配置文件 COPY nginx.conf /etc/nginx/conf.d/default.conf.template @@ -32,7 +33,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf.template COPY --from=builder /app/dist ./ # RUN /bin/sh envsubst /etc/nginx/templates/*.template /etc/nginx/conf.d WORKDIR /etc/nginx/conf.d/ -ENTRYPOINT envsubst '$APP_API_URL' < default.conf.template > default.conf && cat default.conf && nginx -g 'daemon off;' +ENTRYPOINT sed -i "s~~~" /app/index.html && envsubst '$APP_API_URL' < default.conf.template > default.conf && cat default.conf && nginx -g 'daemon off;' # 暴露80端口 EXPOSE 80 # 启动Nginx服务 diff --git a/index.html b/index.html index 7a1d1bd..6638445 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ Payment System +