chore: 前端端口改为 8890:8890

This commit is contained in:
爽哒哒
2026-03-19 00:54:32 +08:00
parent 8ca161f8b0
commit ef9057306c
3 changed files with 6 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ services:
container_name: cywl-scoring-frontend container_name: cywl-scoring-frontend
restart: always restart: always
ports: ports:
- "80:80" - "8890:8890"
depends_on: depends_on:
scoring-backend: scoring-backend:
condition: service_healthy condition: service_healthy

View File

@@ -1,6 +1,9 @@
# 构建阶段 # 构建阶段
FROM node:20-alpine AS builder FROM node:20-alpine AS builder
# 安装构建依赖
RUN apk add --no-cache autoconf automake libtool make g++ zlib-dev nasm python3
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
@@ -28,7 +31,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html COPY --from=builder /app/dist /usr/share/nginx/html
# 暴露端口 # 暴露端口
EXPOSE 80 EXPOSE 8890
# 启动 Nginx # 启动 Nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@@ -1,5 +1,5 @@
server { server {
listen 80; listen 8890;
server_name localhost; server_name localhost;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;