Spaces:
Sleeping
Sleeping
Download Dockerfile from subhash33/llm_chat_models_1: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/spaces/subhash33/llm_chat_models_1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/subhash33/llm_chat_models_1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/subhash33/llm_chat_models_1/resolve/main/Dockerfile
567 Bytes
| FROM python:3.10-slim | |
| # Set environment variable for transformers cache | |
| ENV TRANSFORMERS_CACHE=/app/.cache | |
| # Create a working directory | |
| WORKDIR /app | |
| # Create the cache directory and ensure it has proper permissions | |
| RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Command to run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |