Files
bilive/Dockerfile-GPU
John Howe 02dfe3595c build: release docker with gpu (#217)
* build: release docker with gpu
* build: update source
2025-03-19 18:59:22 +08:00

23 lines
641 B
Plaintext

ARG CUDA_VERSION=12.2
FROM nvidia/cuda:${CUDA_VERSION}.0-runtime-ubuntu22.04
WORKDIR /app
COPY . /app
COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf
RUN apt-get update && apt-get install -y python3.10 python3-pip python3.10-venv ffmpeg gcc procps lsof curl vim fonts-noto-cjk \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /usr/bin/python3.10 /usr/bin/python3 \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& python -m pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
ENV BILIVE_PATH=/app
ENV TZ="Asia/Shanghai"
EXPOSE 2233
CMD ["python", "-m", "src.upload.upload"]