Spaces:
Sleeping
Sleeping
File size: 830 Bytes
f53cb7b 836ede6 f53cb7b 836ede6 f53cb7b 836ede6 f53cb7b 836ede6 f53cb7b 836ede6 |
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 |
FROM python:3.10-slim
WORKDIR /home/user/app
# Install git and git-lfs
RUN apt-get update && \
apt-get install -y git git-lfs && \
rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the rest of the application
COPY . .
# Explicitly copy and verify the PDF file
COPY Dataset/Commercial\ Lending\ 101.pdf /home/user/app/Dataset/
RUN ls -l /home/user/app/Dataset/Commercial\ Lending\ 101.pdf && \
echo "PDF file size: $(stat -f%z /home/user/app/Dataset/Commercial\ Lending\ 101.pdf) bytes"
# Make port configurable via environment variable
ENV PORT=8501
EXPOSE ${PORT}
# Use the correct path to app.py and make port configurable
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=${PORT}", "--server.address=0.0.0.0"]
|