nmarafo commited on
Commit
ad348bd
verified
1 Parent(s): dfe1c31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -26
Dockerfile CHANGED
@@ -1,29 +1,18 @@
1
- FROM python:3.10-slim
2
-
3
- # Instala las dependencias necesarias
4
- RUN apt-get update && apt-get install -y \
5
- build-essential \
6
- git \
7
- cmake \
8
- libopenblas-dev \
9
- wget
10
-
11
- # Clona y compila llama.cpp
12
- RUN git clone https://github.com/ggerganov/llama.cpp.git /llama.cpp
13
- WORKDIR /llama.cpp
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
- # Ejecuta la aplicaci贸n
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"]