salomonsky commited on
Commit
53ee1a6
verified
1 Parent(s): 810dee2

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -4
Dockerfile CHANGED
@@ -1,10 +1,22 @@
1
- FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
7
 
8
- COPY . /code
 
 
 
 
 
 
 
 
9
 
10
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9-slim
2
 
3
  WORKDIR /code
4
 
5
+ # Instalar dependencias del sistema
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ python3-dev \
9
+ portaudio19-dev \
10
+ && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Copiar archivos de requisitos
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copiar archivos de la aplicaci贸n
17
+ COPY . .
18
+
19
+ # Puerto para HF Spaces
20
+ EXPOSE 7860
21
 
22
  CMD ["python", "app.py"]