update docker

This commit is contained in:
2025-11-28 14:21:30 +08:00
parent 03bb1063ad
commit 8003e9edc8
2 changed files with 1 additions and 10 deletions

View File

@@ -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