前端部分更新
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# ============================================================
|
||||
# 离线部署 Dockerfile (内网服务器使用)
|
||||
# 前提:已将 dist/ 目录拷贝到当前路径
|
||||
# docker build -f Dockerfile.offline -t weather-data-ui .
|
||||
# ============================================================
|
||||
FROM nginx:alpine
|
||||
|
||||
LABEL maintainer="weather-data"
|
||||
LABEL description="Weather Data System - Frontend UI (offline)"
|
||||
|
||||
RUN rm -f /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
||||
CMD wget -qO- http://localhost/ || exit 1
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user