Download Dockerfile from aim4composites/Production_Updated_Mat_Database: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/spaces/aim4composites/Production_Updated_Mat_Database/resolve/refs%2Fpr%2F2/Dockerfile
- Command line
-
hf download hf://spaces/aim4composites/Production_Updated_Mat_Database@refs/pr/2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aim4composites/Production_Updated_Mat_Database/resolve/refs%2Fpr%2F2/Dockerfile
556 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"] | |