Download Dockerfile from aim4composites/Production_Updated_Mat_Database: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/aim4composites/Production_Updated_Mat_Database/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aim4composites/Production_Updated_Mat_Database/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aim4composites/Production_Updated_Mat_Database/resolve/main/Dockerfile
684 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 \ | |
| libgl1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/requirements.txt | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.port=7860", \ | |
| "--server.headless=true", \ | |
| "--server.enableCORS=false", \ | |
| "--server.enableXsrfProtection=false"] |