Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
@@ -1,15 +1,12 @@
|
|
1 |
-
# 1. Start from
|
2 |
-
FROM
|
3 |
|
4 |
-
# 2. Set
|
5 |
-
# in this well-configured image. It doesn't hurt to keep it.
|
6 |
ENV DEBIAN_FRONTEND=noninteractive
|
7 |
ENV HF_HOME="/data/huggingface"
|
8 |
ENV UV_CACHE_DIR="/data/uv_cache"
|
9 |
-
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib64:$LD_LIBRARY_PATH
|
10 |
|
11 |
-
# 3.
|
12 |
-
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
|
13 |
RUN pip install uv
|
14 |
|
15 |
# 4. Copy requirements and install them.
|
|
|
1 |
+
# 1. Start from a community-vetted, GPU-ready image
|
2 |
+
FROM runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel
|
3 |
|
4 |
+
# 2. Set up the environment
|
|
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
ENV HF_HOME="/data/huggingface"
|
7 |
ENV UV_CACHE_DIR="/data/uv_cache"
|
|
|
8 |
|
9 |
+
# 3. The base image already has python, pip, etc. Install uv.
|
|
|
10 |
RUN pip install uv
|
11 |
|
12 |
# 4. Copy requirements and install them.
|