Backend / Dockerfile
Bl4ckSpaces's picture
Create Dockerfile
44c5a80 verified
raw
history blame contribute delete
323 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy semua file ke dalam container
COPY . .
# Ekspos port standar Hugging Face Spaces
EXPOSE 7860
# Jalankan server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]