Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -4,8 +4,11 @@ FROM python:3.9-slim
|
|
4 |
# 设置工作目录
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
#
|
8 |
-
RUN apt-get update &&
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
# 将当前目录中的所有文件复制到容器的/app目录下
|
@@ -13,6 +16,7 @@ COPY . .
|
|
13 |
|
14 |
# 安装Python依赖
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
16 |
RUN mkdir static
|
17 |
RUN chmod 777 static
|
18 |
# 暴露应用程序运行的端口(如果需要)
|
|
|
4 |
# 设置工作目录
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# 更新包索引并安装系统依赖
|
8 |
+
RUN apt-get update && \
|
9 |
+
apt-get -qq -y install espeak-ng ffmpeg libavcodec-extra > /dev/null 2>&1 && \
|
10 |
+
apt-get clean && \
|
11 |
+
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
|
14 |
# 将当前目录中的所有文件复制到容器的/app目录下
|
|
|
16 |
|
17 |
# 安装Python依赖
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
+
RUN pip install git+https://github.com/jiaaro/pydub.git@master
|
20 |
RUN mkdir static
|
21 |
RUN chmod 777 static
|
22 |
# 暴露应用程序运行的端口(如果需要)
|