Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM nvidia/cuda:12.6.0-runtime-ubuntu22.04
|
| 2 |
|
| 3 |
-
RUN useradd -m -u
|
| 4 |
# System depsFROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
|
| 5 |
|
| 6 |
RUN apt update && apt upgrade -y
|
|
@@ -17,6 +17,9 @@ RUN apt-get install -y build-essential
|
|
| 17 |
RUN apt-get install -y ninja-build
|
| 18 |
RUN apt-get install -y python3.10-venv
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Create virtualenv
|
| 21 |
RUN python3 -m venv /opt/venv
|
| 22 |
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
| 1 |
FROM nvidia/cuda:12.6.0-runtime-ubuntu22.04
|
| 2 |
|
| 3 |
+
RUN useradd -m -u 1000 user
|
| 4 |
# System depsFROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
|
| 5 |
|
| 6 |
RUN apt update && apt upgrade -y
|
|
|
|
| 17 |
RUN apt-get install -y ninja-build
|
| 18 |
RUN apt-get install -y python3.10-venv
|
| 19 |
|
| 20 |
+
ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface
|
| 21 |
+
RUN mkdir -p /home/user/.cache/huggingface
|
| 22 |
+
|
| 23 |
# Create virtualenv
|
| 24 |
RUN python3 -m venv /opt/venv
|
| 25 |
ENV PATH="/opt/venv/bin:$PATH"
|