diff --git a/Dockerfile b/Dockerfile index f94cb50..8a46161 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,12 +32,12 @@ WORKDIR /app ENV APP_API_URL localhost:50000 # nginx配置文件 -COPY nginx.conf /etc/nginx/conf.d/default.conf.template +#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 sed -i "s~~~" /app/index.html && envsubst '$APP_API_URL' < default.conf.template > default.conf && cat default.conf && nginx -g 'daemon off;' +#WORKDIR /etc/nginx/conf.d/ +#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服务