mirror of
https://github.com/wangwangit/qywx-push.git
synced 2026-09-07 00:36:51 +08:00
Initial commit
This commit is contained in:
+21
@@ -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"]
|
||||
Reference in New Issue
Block a user