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