CoolFace
Apppublic

dea01/halalergy-backend

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
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"]