Spaces:
Runtime error
Runtime error
File size: 749 Bytes
44cbe88 b5bf39b 44cbe88 b5bf39b cf7ce59 b5bf39b 44cbe88 b5bf39b 44cbe88 31d343e 44cbe88 2e4457a 9b9a5c1 55270d6 31d343e 84039f6 7a7a0bc b5bf39b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# Use an official Python image
FROM python:3.12
# Set working directory inside the container
WORKDIR /app
# Copy the application files into the container
COPY . /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
poppler-utils \
tesseract-ocr \
libgl1-mesa-glx \
postgresql postgresql-client \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port Streamlit runs on
EXPOSE 8501
# ENTRYPOINT ["bash", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]
# CMD ["--host", "0.0.0.0", "--port", "7860"]
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|