update docker
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user