Initial commit

This commit is contained in:
wangwangit
2025-07-06 11:35:36 +08:00
commit 9502459755
19 changed files with 5513 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM node:18
WORKDIR /app
# 复制 package 文件
COPY package*.json ./
# 设置npm配置以提高稳定性
RUN npm config set registry https://registry.npmmirror.com \
&& npm config set fetch-retry-mintimeout 20000 \
&& npm config set fetch-retry-maxtimeout 120000
# 安装依赖 (使用--build-from-source确保sqlite3正确编译)
RUN npm install --build-from-source=sqlite3
# 复制应用代码
COPY . .
EXPOSE 12121
CMD ["npm", "start"]