-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
52 lines (44 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=on \
SHELL=/bin/bash
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /
# Upgrade apt packages and install required dependencies
RUN apt update && \
apt upgrade -y && \
apt install -y \
python3-dev \
python3-pip \
fonts-dejavu-core \
rsync \
git \
jq \
moreutils \
aria2 \
wget \
curl \
libglib2.0-0 \
libsm6 \
libgl1 \
libxrender1 \
libxext6 \
ffmpeg \
bc \
libgoogle-perftools4 \
libtcmalloc-minimal4 \
procps && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean -y
# Set Python
RUN ln -s /usr/bin/python3.10 /usr/bin/python
# Install Worker dependencies
RUN pip install requests runpod huggingface_hub
# Add RunPod Handler and Docker container start script
COPY start.sh rp_handler.py ./
COPY schemas /schemas
# Start the container
RUN chmod +x /start.sh
ENTRYPOINT /start.sh