Spaces:
Runtime error
Runtime error
File size: 577 Bytes
8400f04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use the official Python image
FROM python:3.9.7
# Set the working directory in the container
WORKDIR /code
# Copy the requirements file into the container
COPY ./requirements.txt /code/requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Install Tesseract OCR via the package manager
RUN apt-get update && apt-get install -y tesseract-ocr
# Copy the entire project directory into the container
COPY . /code
# Command to run the FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|