nmarafo commited on
Commit
bb2c6a4
verified
1 Parent(s): b6f826f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
16
+ # Establece el directorio de trabajo
17
+ WORKDIR /app
18
+
19
+ # Instala las dependencias de Python
20
+ COPY requirements.txt .
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Copia tu aplicaci贸n al contenedor
24
+ COPY . .
25
+
26
+ # Ejecuta la aplicaci贸n
27
+ CMD ["python", "app.py"]