opencv_webcam/Dockerfile

22 lines
436 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Opencv Webcam Script, GPL-3.0 License
# 创建人:曾逸夫
# 创建时间2021-12-31
FROM ubuntu:latest
LABEL maintainer="zyfiy1314@163.com"
# 安装linux包
RUN apt update && apt install -y python3-pip zip
RUN alias python=python3
# 安装依赖
COPY requirements.txt .
RUN pip install --no-cache -U -r requirements.txt
# 创建工作目录
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# 复制内容
COPY . /usr/src/app