Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
FROM nvidia/cuda:12.4.0-devel-ubuntu22.04
|
| 2 |
|
| 3 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
| 4 |
ln -sf python3 /usr/bin/python && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
| 6 |
# uv 설치
|
| 7 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 8 |
ENV PATH="/root/.local/bin:$PATH"
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
COPY requirements.txt /app/requirements.txt
|
| 11 |
RUN uv pip install --system --no-cache -r /app/requirements.txt
|
| 12 |
|
|
|
|
| 1 |
FROM nvidia/cuda:12.4.0-devel-ubuntu22.04
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y \
|
| 4 |
+
python3 python3-dev python3-venv git curl gcc g++ && \
|
| 5 |
ln -sf python3 /usr/bin/python && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
# uv 설치
|
| 8 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 9 |
ENV PATH="/root/.local/bin:$PATH"
|
| 10 |
|
| 11 |
+
# libcuda stub for triton JIT compilation
|
| 12 |
+
ENV LIBRARY_PATH="/usr/local/cuda/lib64/stubs:$LIBRARY_PATH"
|
| 13 |
+
|
| 14 |
COPY requirements.txt /app/requirements.txt
|
| 15 |
RUN uv pip install --system --no-cache -r /app/requirements.txt
|
| 16 |
|