nitin230/File-Converter
0
1FROM python:3.10-slim2 3RUN apt-get update && apt-get install -y --no-install-recommends \4 poppler-utils \5 tesseract-ocr \6 tesseract-ocr-eng \7 tesseract-ocr-hin \8 libreoffice \9 libgl1 \10 libglib2.0-0 \11 libsm6 \12 libxrender1 \13 libxext6 \14 && apt-get clean && rm -rf /var/lib/apt/lists/*15 16WORKDIR /app17COPY requirements.txt .18RUN pip install --no-cache-dir -r requirements.txt19 20COPY . .21 22RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app23USER appuser24 25EXPOSE 786026 27CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "1", "app:app"]28 