From 95971e611d9d0ce7899ec5e97d8728bf2c1376d7 Mon Sep 17 00:00:00 2001 From: 13339479676 Date: Fri, 31 Dec 2021 18:53:05 +0800 Subject: [PATCH] dockerfile update --- .dockerignore | 3 ++- .gitignore | 1 + Dockerfile | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 52234fb..e01a873 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ *.jpg *.png -*.mp4 \ No newline at end of file +*.mp4 +*.avi \ No newline at end of file diff --git a/.gitignore b/.gitignore index 596e8d5..c1f6d8d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.jpeg *.png *.mp4 +*.avi \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index fb8c0ca..cd6d163 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,3 +3,20 @@ # 创建时间: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 \ No newline at end of file