Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jiangwu10057
Copy link

No description provided.

@why2lyj
Copy link
Owner

why2lyj commented Jul 23, 2021

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

@ifishzz
Copy link

ifishzz commented Nov 29, 2021

FROM python:3.7-slim

MAINTAINER Snow Wang [email protected]

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants