cloud / Dockerfile
R-Nozawa's picture
Update Dockerfile
43cccb6 verified
raw
history blame contribute delete
432 Bytes
# Gunakan base image Python yang ringan
FROM python:3.9-slim
# Tentukan working directory
WORKDIR /app
# Copy file yang diperlukan
COPY requirements.txt ./
COPY launcher.py ./
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port FastAPI (Hugging Face menggunakan port 7860 secara default)
EXPOSE 7860
# Jalankan launcher.py untuk mengunduh dan menjalankan app.py
CMD ["python", "launcher.py"]