-
-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathDockerfile-GPU
More file actions
22 lines (15 loc) · 597 Bytes
/
Dockerfile-GPU
File metadata and controls
22 lines (15 loc) · 597 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 TZ="Asia/Shanghai"
EXPOSE 2233
CMD ["./start.sh"]