dockerfile update

This commit is contained in:
13339479676 2021-12-31 18:53:05 +08:00
parent d49ec393bf
commit 95971e611d
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,4 @@
*.jpg
*.png
*.mp4
*.avi

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.jpeg
*.png
*.mp4
*.avi

View File

@ -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