opencv_webcam/Dockerfile

25 lines
590 B
Docker
Raw Normal View History

2022-01-07 12:34:23 +08:00
# Opencv Webcam Script v0.2, GPL-3.0 License
2021-12-31 12:30:17 +08:00
# 创建人:曾逸夫
2022-01-07 13:15:09 +08:00
# 创建时间2022-01-06
2021-12-31 12:30:17 +08:00
2021-12-31 18:53:05 +08:00
FROM ubuntu:latest
LABEL maintainer="zyfiy1314@163.com"
# 安装linux包
2021-12-31 21:05:05 +08:00
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive TZ=Asia/Shanghai apt-get -y install tzdata
RUN apt install -y python3-pip zip htop screen libgl1-mesa-glx libgtk2.0-dev
2021-12-31 18:53:05 +08:00
# 安装依赖
COPY requirements.txt .
2021-12-31 21:05:05 +08:00
RUN python3 -m pip install --no-cache --upgrade pip
2021-12-31 18:53:05 +08:00
RUN pip install --no-cache -U -r requirements.txt
# 创建工作目录
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# 复制内容
2022-01-07 12:34:23 +08:00
COPY . /usr/src/app