Skajmalka / Dockerfile
Bl4ckSpaces's picture
Create Dockerfile
efa8c16 verified
raw
history blame contribute delete
452 Bytes
# Gunakan Python 3.9 yang ringan
FROM python:3.9-slim
# Set folder kerja
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Buat folder cache dan beri izin (penting untuk Gradio Client di Space)
RUN mkdir -p /.cache && chmod 777 /.cache
# Copy semua file coding
COPY . .
# Buka port 7860
EXPOSE 7860
# Jalankan server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]