mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-25 21:36:46 +08:00
20 lines
466 B
Docker
20 lines
466 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y curl gnupg && \
|
|
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
|
apt-get install -y nodejs
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y ffmpeg tzdata && \
|
|
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
dpkg-reconfigure -f noninteractive tzdata
|
|
|
|
CMD ["python", "main.py"]
|