why2lyj / youxiang-Itchat

无视微信Web无法登录问题。获取淘宝优惠券、京东优惠券、拼多多(多多客)优惠券、苏宁易购优惠券、唯品会优惠券,通过接入淘宝联盟、京东联盟、拼多多(多多进宝)、苏宁联盟(苏宁推客)、唯品会及其对应的开放平台,获取优惠商品图片和对应商品信息,利用微信机器人推送到指定群聊。
1.24k stars 424 forks source link

fix:docker镜像缺少依赖libzbar-dev #7

Open jiangwu10057 opened 3 years ago

why2lyj commented 3 years ago

@jiangwu10057 是Itchat-UOS缺失libzbar-dev?

ifishzz commented 3 years ago

FROM python:3.7-slim

MAINTAINER Snow Wang admin@farseer.vip

WORKDIR /youxiang COPY requirements.txt requirements.txt COPY . /youxiang

ENV TZ=Asia/Shanghai RUN /usr/local/bin/python -m pip install --upgrade pip && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone && \ sed -i "s@http://deb.debian.org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \ apt-get update RUN apt-get install -y libzbar-dev --fix-missing && \ pip install -r requirements.txt

ENTRYPOINT ["python", "/youxiang/main.py"]