返回 douyin-downloader
Dockerfile
根目录 / Dockerfile
1 FROM python:3.12-slim
2
3 WORKDIR /app
4
5 RUN apt-get update && \
6 apt-get install -y --no-install-recommends gcc && \
7 rm -rf /var/lib/apt/lists/*
8
9 COPY requirements.txt .
10 RUN pip install --no-cache-dir -r requirements.txt
11
12 COPY . .
13
14 RUN mkdir -p /app/Downloaded
15
16 VOLUME ["/app/Downloaded", "/app/config.yml"]
17
18 ENTRYPOINT ["python", "run.py"]
19 CMD ["-c", "config.yml"]
20
20 lines Plain Text