Skip to content

Commit

Permalink
version(docker): apply apk add instead of apt get
Browse files Browse the repository at this point in the history
  • Loading branch information
CapooL committed May 15, 2024
1 parent 5091353 commit be52683
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hinghwa-dict-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ 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
Expand Down

0 comments on commit be52683

Please sign in to comment.