diff --git a/Dockerfile b/Dockerfile index 76d34e5..7ef4524 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/readme.md b/readme.md index 0b12986..7dbbead 100644 --- a/readme.md +++ b/readme.md @@ -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`就可以看到接口文档了。~~ diff --git a/redis.conf b/redis.conf deleted file mode 100644 index e3824a4..0000000 --- a/redis.conf +++ /dev/null @@ -1,4 +0,0 @@ -dir /var/lib/redis -save 60 1000 -appendonly yes -appendfsync everysec