Spaces:
Sleeping
Sleeping
File size: 443 Bytes
16fc1e2 f4c9841 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Gunakan image Python yang ringan
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Copy file requirements
COPY ./requirements.txt /code/requirements.txt
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy semua file ke dalam container
COPY . .
# Jalankan Uvicorn (FastAPI) pada port 7860 (port standar HF Spaces)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |