chore: 前端端口改为 8890:8890
Some checks failed
Deploy to Server / deploy (push) Failing after 10m2s

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

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

View File

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