Spaces:
Sleeping
Sleeping
malteos commited on
install hf mounts
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.13
|
| 2 |
|
|
|
|
|
|
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
@@ -10,6 +12,9 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
COPY --chown=user . /app
|
|
|
|
|
|
|
|
|
|
| 13 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 14 |
|
| 15 |
|
|
|
|
| 1 |
FROM python:3.13
|
| 2 |
|
| 3 |
+
RUN curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh | sh
|
| 4 |
+
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
USER user
|
| 7 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 13 |
|
| 14 |
COPY --chown=user . /app
|
| 15 |
+
|
| 16 |
+
RUN hf-mount status
|
| 17 |
+
|
| 18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 19 |
|
| 20 |
|