feat(csms): add deployment script and database schema for user authentication
This commit is contained in:
16
apps/csms/deploy/Dockerfile
Normal file
16
apps/csms/deploy/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 复制应用文件
|
||||
COPY package.json .
|
||||
COPY index.js .
|
||||
|
||||
# 安装依赖
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 3001
|
||||
|
||||
# 启动应用
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user