Spaces:
Sleeping
Sleeping
Download Dockerfile from DivyaKarade/ChemInsight: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/spaces/DivyaKarade/ChemInsight/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DivyaKarade/ChemInsight/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DivyaKarade/ChemInsight/resolve/main/Dockerfile
912 Bytes
| # Use a lightweight Python image | |
| FROM python:3.9-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libxrender1 \ | |
| libxext6 \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy all files from the current directory into the container | |
| COPY . /app | |
| # Install system dependencies from packages.txt | |
| RUN apt-get update && xargs -a packages.txt apt-get install -y | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the port (Streamlit typically uses 8501, but Render will assign a dynamic port) | |
| EXPOSE 8501 | |
| # Run the app with Streamlit, using Render's assigned $PORT | |
| CMD streamlit run ChemInsight.py --server.port=${PORT:-7860} --server.address=0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false | |
| ENV MPLCONFIGDIR=/tmp/matplotlib | |