Spaces:
Build error
Build error
Download Dockerfile from HuuDatLego/UI-VieNeu: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/HuuDatLego/UI-VieNeu/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HuuDatLego/UI-VieNeu/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HuuDatLego/UI-VieNeu/resolve/main/Dockerfile
670 Bytes
| # Dùng image đã cài sẵn llama-cpp-python (bản CPU) | |
| FROM ghcr.io/abetlen/llama-cpp-python:latest | |
| # Cài đặt thêm các công cụ hệ thống bạn cần (ffmpeg, redis) | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| redis-server \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy requirements và cài các thư viện còn lại | |
| COPY requirements.txt ./ | |
| # Cài đặt các thư viện của bạn (bỏ qua llama-cpp-python vì đã có sẵn trong image) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy mã nguồn | |
| COPY . . | |
| RUN mkdir -p static/results temp && chmod +x start.sh | |
| EXPOSE 7860 | |
| CMD ["./start.sh"] | |