AIdeaText commited on
Commit
202f555
verified
1 Parent(s): 20d109a

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -41
Dockerfile DELETED
@@ -1,41 +0,0 @@
1
- FROM python:3.10
2
-
3
- WORKDIR /app
4
-
5
- ENV TORCH_IGNORE_DISABLED_CUDA_WARNINGS=1
6
- ENV STREAMLIT_SERVER_ENABLE_WEBKIT_DEPRECATION=0
7
-
8
- # Instalar dependencias del sistema
9
- RUN apt-get update && apt-get install -y \
10
- build-essential \
11
- curl \
12
- software-properties-common \
13
- git \
14
- && rm -rf /var/lib/apt/lists/*
15
-
16
- # Crear directorios necesarios con permisos adecuados
17
- RUN mkdir -p /home/appuser/.streamlit && \
18
- mkdir -p /home/appuser/.config/matplotlib && \
19
- chmod -R 777 /home/appuser
20
-
21
- # Configurar variables de entorno
22
- ENV MPLCONFIGDIR=/home/appuser/.config/matplotlib
23
- ENV STREAMLIT_GLOBAL_DEVELOPMENT_MODE=false
24
- ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
25
-
26
- # Copiar archivos de la aplicaci贸n
27
- COPY requirements.txt ./
28
- COPY src/ ./src/
29
-
30
- # Instalar dependencias de Python
31
- RUN pip3 install --no-cache-dir -r requirements.txt
32
-
33
- # Establecer usuario no root
34
- RUN useradd -m appuser && chown -R appuser:appuser /app
35
- USER appuser
36
-
37
- EXPOSE 8501
38
-
39
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
40
-
41
- ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]