Dockerfile 795 B

12345678910111213141516171819
  1. FROM python:3.11-slim
  2. WORKDIR /app
  3. COPY . .
  4. ENV TZ=Asia/Shanghai
  5. RUN apt update && apt --no-install-recommends install -y wget xz-utils nscd libgl-dev libglib2.0-dev fonts-wqy-zenhei \
  6. && apt-get clean && rm -rf /var/lib/apt/lists/* \
  7. && pip install -r requirements.txt --no-cache-dir \
  8. && wget -O /tmp/ffmpeg-7.0.2-amd64-static.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz \
  9. && tar -xJvf /tmp/ffmpeg-7.0.2-amd64-static.tar.xz -C /usr/local/ \
  10. && rm /tmp/ffmpeg-7.0.2-amd64-static.tar.xz \
  11. && ln -s /usr/local/ffmpeg-7.0.2-amd64-static/ffprobe /usr/local/bin/ffprobe \
  12. && ln -s /usr/local/ffmpeg-7.0.2-amd64-static/ffmpeg /usr/local/bin/ffmpeg \
  13. && mkdir -p /app/cache
  14. ENTRYPOINT ["python", "/app/carry_data_redis.py"]