diff --git a/.env b/.env new file mode 100644 index 0000000..6bdc5f8 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +PORT=3000 +WECHAT_UPSTREAM_BASE_URL=http://113.44.162.180:7006 + diff --git a/.env.example b/.env.example index c171ea3..a8a31d9 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ PORT=3000 -WECHAT_UPSTREAM_BASE_URL=http://your-wechat-server-host:port +WECHAT_UPSTREAM_BASE_URL=http://113.44.162.180:7006 + +# KEY = HBpEnbtj9BJZ +# password = 408449830 diff --git a/Dockerfile b/Dockerfile index 43a8997..dd5c2e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine AS build +FROM docker.m.daocloud.io/library/node:20-alpine AS build WORKDIR /app @@ -8,10 +8,11 @@ RUN npm install COPY tsconfig.json ./tsconfig.json COPY src ./src +COPY public ./public RUN npm run build -FROM node:20-alpine AS runtime +FROM docker.m.daocloud.io/library/node:20-alpine AS runtime WORKDIR /app @@ -19,9 +20,10 @@ ENV NODE_ENV=production COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/dist ./dist -COPY .env.example ./ ./ +COPY --from=build /app/public ./public +COPY .env.example ./ EXPOSE 3000 -CMD [\"node\", \"dist/server.js\"] +CMD ["node", "dist/server.js"] diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..e4467d9 --- /dev/null +++ b/public/index.html @@ -0,0 +1,918 @@ + + +
+ +