Download Dockerfile from TeamSAS/UB_VSA: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/TeamSAS/UB_VSA/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TeamSAS/UB_VSA/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TeamSAS/UB_VSA/resolve/main/Dockerfile
623 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN echo "Installed required Python packages." | |
| ENV HF_HOME=/app/.cache/huggingface | |
| ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/transformers | |
| ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache/sentence_transformers | |
| RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache | |
| COPY buffalo_rag/ /app/buffalo_rag | |
| COPY main.py /app/main.py | |
| COPY data/ /app/data | |
| COPY start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| EXPOSE 8000 | |
| RUN chmod -R 777 /app | |
| RUN chmod -R 777 /app/data | |
| CMD ["/bin/bash", "/app/start.sh"] | |