mirror of
https://github.com/timerring/bilive.git
synced 2026-05-07 22:05:55 +08:00
* GPU version of docker image * fix gpu build script use default Dockerfile * build: release docker with gpu --------- Co-authored-by: limliu <lim.liu.01@outlook.com> Co-authored-by: John Howe <89397553+timerring@users.noreply.github.com>
26 lines
445 B
Docker
26 lines
445 B
Docker
FROM python:3.10-slim
|
|
|
|
LABEL maintainer="timerring"
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
procps \
|
|
lsof \
|
|
curl \
|
|
vim \
|
|
&& pip install --no-cache-dir -r requirements.txt \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV BILIVE_PATH=/app
|
|
ENV TZ="Asia/Shanghai"
|
|
|
|
EXPOSE 2233
|
|
|
|
CMD ["python", "-m", "src.upload.upload"] |