diff --git a/hinghwa-dict-backend/Dockerfile b/hinghwa-dict-backend/Dockerfile index 4e7917e..466ae9e 100644 --- a/hinghwa-dict-backend/Dockerfile +++ b/hinghwa-dict-backend/Dockerfile @@ -1,15 +1,15 @@ -FROM python:3.8.11 +FROM python:3.10 WORKDIR /usr/src/HinghwaDict-backend #更新apt-get源 使用163的源 -RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ - echo "deb https://mirrors.163.com/debian/ bullseye main non-free contrib" >/etc/apt/sources.list && \ - echo "deb https://mirrors.163.com/debian-security/ bullseye-security main" >>/etc/apt/sources.list && \ - echo "deb https://mirrors.163.com/debian/ bullseye-updates main non-free contrib" >>/etc/apt/sources.list && \ - echo "deb https://mirrors.163.com/debian/ bullseye-backports main non-free contrib" >>/etc/apt/sources.list -RUN apt-get update -RUN apt-get install ffmpeg -y +#RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ +# echo "deb https://mirrors.163.com/debian/ bullseye main non-free contrib" >/etc/apt/sources.list && \ +# echo "deb https://mirrors.163.com/debian-security/ bullseye-security main" >>/etc/apt/sources.list && \ +# echo "deb https://mirrors.163.com/debian/ bullseye-updates main non-free contrib" >>/etc/apt/sources.list && \ +# echo "deb https://mirrors.163.com/debian/ bullseye-backports main non-free contrib" >>/etc/apt/sources.list +# RUN apt-get update +RUN apk add ffmpeg -y COPY requirements.txt . RUN pip install -ihttps://mirrors.aliyun.com/pypi/simple/ -r requirements.txt