更新版本
All checks were successful
BuildImage / build-image (push) Successful in 2m34s

This commit is contained in:
李寻欢 2025-02-20 23:10:18 +08:00
parent b4da9b6167
commit 1136903942
3 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,10 @@
FROM debian:bookworm-slim
FROM python:3.11-slim AS core
RUN pip install --no-cache-dir xywechatpad-binary
RUN pip show xywechatpad-binary
FROM debian:bookworm-slim AS runner
LABEL org.opencontainers.image.authors="lxh@cxh.cn"
# 预定义参数
@ -10,6 +16,8 @@ WORKDIR /app
# 复制文件
COPY . .
COPY --from=core /usr/local/lib/python3.11/site-packages/xywechatpad_binary/binaries/linux_x64 ./WechatAPI/core/
#RUN ls -lah ./WechatAPI/core
# 开始运行
CMD /app/WechatAPI/core/XYWechatPad \

View File

@ -11,8 +11,10 @@ services:
restart: unless-stopped
ports:
- "9000:9000"
volumes:
- ./data:/var/lib/redis # 登录缓存数据
environment:
- REDIS_HOST=10.0.0.31
- REDIS_PASSWORD=password
- REDIS_DB=2
```
~~运行起来之后,直接浏览器打开`http://{your_ip}:9000`就可以看到接口文档了。~~

View File

@ -1,4 +0,0 @@
dir /var/lib/redis
save 60 1000
appendonly yes
appendfsync everysec