forked from runpod-workers/worker-infinity-embedding
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 734 Bytes
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
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04 AS base
ENV HF_HOME=/runpod-volume
# install python and other packages
RUN apt-get update && apt-get install -y \
python3.11 \
python3-pip \
git \
wget \
libgl1 \
&& ln -sf /usr/bin/python3.11 /usr/bin/python \
&& ln -sf /usr/bin/pip3 /usr/bin/pip
# install uv
RUN pip install uv
# install python dependencies
COPY requirements.txt /requirements.txt
RUN uv pip install -r /requirements.txt --system
# install torch
RUN pip install torch==2.5.1+cu124 --index-url https://download.pytorch.org/whl/test/cu124 --no-cache-dir
# Add src files
ADD src .
# Add test input
COPY test_input.json /test_input.json
# start the handler
CMD python -u /handler.py