Spaces:
Runtime error
Runtime error
| # Base Image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy backend files | |
| COPY backend/ /app/backend/ | |
| # Install dependencies | |
| RUN pip install -r /app/backend/requirements.txt | |
| # Copy frontend files | |
| COPY frontend/ /app/frontend/ | |
| # Tạo thư mục cache trong thư mục làm việc của ứng dụng | |
| RUN mkdir -p /app/whisper_cache | |
| # Cấp quyền ghi cho thư mục cache | |
| RUN chmod -R 777 /app/whisper_cache | |
| # Expose port 7860 (cho HF Spaces) | |
| EXPOSE 7860 | |
| # Start FastAPI server | |
| CMD ["python", "/app/backend/server.py"] | |