From 89b2a8360a8f7144806140bc4f508d72a4683c09 Mon Sep 17 00:00:00 2001 From: jcy Date: Tue, 13 May 2025 10:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=87=E4=BB=B6/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 修复文件/Dockerfile | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 修复文件/Dockerfile diff --git a/修复文件/Dockerfile b/修复文件/Dockerfile deleted file mode 100644 index d6d669f..0000000 --- a/修复文件/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -# 基础镜像选择 -FROM python:3.10-slim - -# 设置工作目录 -WORKDIR /app - -# 安装系统依赖 -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - build-essential \ - ffmpeg \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -# 拷贝依赖文件并安装 -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - -# 拷贝应用文件 -COPY . . - -# 创建必要的目录 -RUN mkdir -p uploads output /mounted_summaries - -# 设置环境变量 -ENV PYTHONUNBUFFERED=1 -ENV GUNICORN_CMD_ARGS="--config=gunicorn_config.py" -ENV PORT=5000 - -# 添加执行权限 -RUN chmod +x /app/entrypoint.sh - -# 暴露端口 -EXPOSE 5000 - -# 使用entrypoint.sh作为启动命令 -ENTRYPOINT ["/app/entrypoint.sh"] \ No newline at end of file