plag-api / Dockerfile
viswa-chaitanya's picture
added images format
1e0fc11
raw
history blame contribute delete
568 Bytes
FROM python:3.9
# Install system dependencies: ffmpeg and Tesseract OCR
RUN apt-get update && apt-get install -y \
ffmpeg \
tesseract-ocr \
libtesseract-dev \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all files into the container
COPY . .
# Expose the port FastAPI runs on
EXPOSE 7860
# Start the FastAPI app using Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]