dea01/halalergy-backend
0
1FROM python:3.9-slim2 3# Install Tesseract OCR dan library pendukung (libgl1-mesa-glx diganti libgl1)4RUN apt-get update && apt-get install -y \5 tesseract-ocr \6 libtesseract-dev \7 libgl1 \8 libglib2.0-0 \9 && rm -rf /var/lib/apt/lists/*10 11WORKDIR /app12 13# Atur permission agar bisa menulis file/cache di Hugging Face14RUN mkdir -p /.cache && chmod -R 777 /.cache15 16COPY requirements.txt .17RUN pip install --no-cache-dir -r requirements.txt18 19COPY . .20 21# Pastikan folder aplikasi bisa diakses penuh22RUN chmod -R 777 /app23 24# Jalankan Gunicorn di port 786025CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "1"]