feat: 添加许可证密钥管理功能,更新许可证激活逻辑,支持环境变量配置,增加Docker支持

This commit is contained in:
cheng zhen
2024-12-30 21:45:46 +08:00
parent 7525b07d5b
commit 72a37b9c2b
10 changed files with 1764 additions and 82 deletions

20
server/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 使用 Node.js 18 作为基础镜像
FROM node:18-alpine
# 设置工作目录
WORKDIR /usr/src/app
# 复制 package.json 和 package-lock.json如果存在
COPY package*.json ./
# 安装依赖
RUN npm install
# 复制源代码
COPY . .
# 暴露端口
EXPOSE 3000
# 启动命令
CMD ["node", "server.js"]