LuisTo97 commited on
Commit
9a53d59
·
verified ·
1 Parent(s): d97ef61

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -1,8 +1,17 @@
1
  FROM python:3.9-slim
 
2
  WORKDIR /app
 
 
 
 
 
 
3
  ENV HOME=/tmp
4
 
5
  COPY . .
6
- RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
 
 
7
 
8
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
  FROM python:3.9-slim
2
+
3
  WORKDIR /app
4
+
5
+ # Necesitamos git para los subprocess.run(["git", ...]) que configuran autores
6
+ RUN apt-get update && apt-get install -y git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Redirigimos HOME para que Streamlit pueda escribir su config
10
  ENV HOME=/tmp
11
 
12
  COPY . .
13
+
14
+ RUN pip install --upgrade pip \
15
+ && pip install --no-cache-dir -r requirements.txt
16
 
17
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]