Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +15 -26
Dockerfile
CHANGED
|
@@ -1,29 +1,18 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
RUN
|
| 13 |
-
|
| 14 |
-
RUN make
|
| 15 |
-
RUN chmod +x /llama.cpp/main # Asegura que el ejecutable tenga permisos de ejecuci贸n
|
| 16 |
-
|
| 17 |
-
# Establece el directorio de trabajo
|
| 18 |
-
WORKDIR /app
|
| 19 |
-
|
| 20 |
-
# Instala las dependencias de Python
|
| 21 |
-
COPY requirements.txt .
|
| 22 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
-
|
| 24 |
-
# Copia tu aplicaci贸n al contenedor
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
-
|
| 28 |
-
CMD ["python", "app.py"]
|
| 29 |
|
|
|
|
|
|
| 1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
+
# you will also find guides on how best to write your Dockerfile
|
| 3 |
+
|
| 4 |
+
FROM python:3.10
|
| 5 |
+
|
| 6 |
+
WORKDIR /code
|
| 7 |
+
|
| 8 |
+
RUN wget https://huggingface.co/mradermacher/shieldgemma-9b-GGUF/resolve/main/shieldgemma-9b.Q4_K_M.gguf?download=true -O shieldgemma-9b.Q4_K_M.gguf
|
| 9 |
+
|
| 10 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 11 |
+
|
| 12 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
ENV MPLCONFIGDIR /code/matplotlib/
|
|
|
|
| 17 |
|
| 18 |
+
CMD ["python", "app.py"]
|