From 8003e9edc8abc5c93cc0215aa4e161e1ee48cdb2 Mon Sep 17 00:00:00 2001 From: ZFsun <34314687@qq.com> Date: Fri, 28 Nov 2025 14:21:30 +0800 Subject: [PATCH] update docker --- Dockerfile | 7 ------- docker-compose.yml | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9d0fc0..b01d1f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,6 @@ RUN bun install --production # 复制源码 COPY . . -# 构建(Bun 支持直接运行 TS,无需编译) -# 如果你希望预编译,可加 RUN bun build ... - -# 创建非 root 用户(安全最佳实践) -RUN addgroup -g 1001 -S nodejs && \ - adduser -S nextjs -u 1001 -G nodejs -USER nextjs EXPOSE 8080 diff --git a/docker-compose.yml b/docker-compose.yml index 216dc16..0d2892c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,11 @@ # docker-compose.yml -version: '3.8' - services: saas-admin-api: build: . container_name: saas-admin-api restart: always ports: - - "8080:8080" + - "8180:8080" env_file: - .env healthcheck: