17 lines
529 B
Docker
17 lines
529 B
Docker
FROM python:3.8-slim-buster
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
#RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
|
|
#RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
|
|
RUN sed -i "s@http://deb.debian.org@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
|
|
RUN apt-get clean
|
|
|
|
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
|
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
|
RUN pip install -r requirements.txt
|
|
|
|
CMD ["python", "app.py"]
|