Download Dockerfile from hoagxxll/embed: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/hoagxxll/embed/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hoagxxll/embed/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hoagxxll/embed/resolve/main/Dockerfile
390 Bytes
| FROM python:3.10-slim | |
| # Tạo thư mục làm việc | |
| WORKDIR /app | |
| # Copy tất cả file vào container | |
| COPY . /app | |
| RUN mkdir -p /app/cache | |
| RUN mkdir -p /.cache | |
| RUN chmod -R 777 /.cache | |
| # Cài thư viện Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Mở port cho API | |
| EXPOSE 7860 | |
| # Chạy server FastAPI | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |