Spaces:
Build error
Build error
Download Dockerfile from jbenavidesv87/test: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/jbenavidesv87/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jbenavidesv87/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jbenavidesv87/test/resolve/main/Dockerfile
708 Bytes
| # Usa una imagen base con Python 3.9 | |
| FROM python:3.9-slim | |
| # Actualiza e instala dependencias | |
| RUN apt-get update && apt-get install -y \ | |
| openjdk-11-jdk \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Configura la variable de entorno JAVA_HOME para Java | |
| ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | |
| ENV PATH=$JAVA_HOME/bin:$PATH | |
| # Instala PySpark, transformers, torch y streamlit | |
| RUN pip install --no-cache-dir \ | |
| pyspark==3.5.0 \ | |
| transformers==4.34.0 \ | |
| torch==2.0.1 \ | |
| streamlit==1.25.0 | |
| # Copia el código de la aplicación al contenedor | |
| WORKDIR /app | |
| COPY . /app | |
| # Expone el puerto para Streamlit | |
| EXPOSE 8501 | |
| # Comando de inicio para Streamlit | |
| CMD ["streamlit", "run", "app.py"] | |