diff --git a/.drone.yml b/.drone.yml index f98672b..7ffe961 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,7 @@ steps: commands: - docker stop alert-front || true - docker rm alert-front || true - - docker run -d --restart always --name alert-front -p 8080:8080 alert-front:latest + - docker run -d --restart always --name alert-front -p 5000:5000 alert-front:latest volumes: - name: dockersock diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 68b91dc..afb7ce9 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -29,5 +29,5 @@ COPY --from=builder /app/dist /usr/share/nginx/html # 拷贝 nginx 配置 COPY --from=builder /app/scripts/nginx.conf /etc/nginx/nginx.conf -EXPOSE 8080 +EXPOSE 5000 CMD ["nginx", "-g", "daemon off;"] diff --git a/scripts/nginx.conf b/scripts/nginx.conf index c271a80..a86f30b 100644 --- a/scripts/nginx.conf +++ b/scripts/nginx.conf @@ -11,7 +11,7 @@ http { sendfile on; server { - listen 8080; + listen 5000; server_name localhost; # 静态资源和前端页面