增加docke部署

This commit is contained in:
2026-04-10 16:44:13 +08:00
parent e2f8054794
commit cd4ddb606d
5076 changed files with 701092 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
FROM node:18-alpine
WORKDIR /app
# 安装依赖
COPY wxserver_daoqi/package.json ./
RUN npm install --production
# 拷贝应用代码
COPY wxserver_daoqi/ ./
# 设置时区
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata
EXPOSE 3000
CMD ["node", "index.js"]