moodread-api / Dockerfile
abzhorrr's picture
feat: deploy MoodRead FastAPI
d6e9cc7
Raw
History Blame Contribute Delete
442 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependensi sistem
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy dan install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy semua file aplikasi
COPY . .
# Expose port yang dipakai Hugging Face
EXPOSE 7860
# Jalankan server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]