-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): bump python version in Dockerfile (#366)
* build(docker): bump python version in Dockerfile * refactor(settings): reformat for black
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
FROM python:3.10 | ||
FROM python:3.10-bookworm | ||
|
||
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 sed -i '[email protected]@repo.huaweicloud.com@g' /etc/apt/sources.list.d/debian.sources | ||
RUN apt-get update | ||
RUN apt-get install ffmpeg -y | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters