From 1c0e4ce4115ae1c61950305526ebd6229774bcd5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 28 Apr 2025 15:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8efbf58 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM linuxserver/ffmpeg:7.1.1 +LABEL authors="Jerry Yan" + +RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list && \ + sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + python3-pip \ + python3-dev \ + python3-setuptools \ + python3-wheel \ + python3-venv +RUN apt-get clean && \ + rm -rf /var/lib/apt/lists/* +COPY . /app/ +RUN python3 -m venv /app/venv +RUN /app/venv/bin/python -m pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/simple +RUN /app/venv/bin/python -m pip install -r /app/requirements.txt + +WORKDIR /app +ENTRYPOINT ["/app/venv/bin/python", "app.py"] \ No newline at end of file