File size: 640 Bytes
597871b 6388684 9d7b7e0 82a117d 9d7b7e0 0c8e750 597871b 6388684 9d7b7e0 471a382 6388684 597871b |
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 |
FROM python:3.9
# Install system dependencies required by Prophet
RUN apt-get update && apt-get install -y \
build-essential \
libpython3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy all files at once to minimize layers
COPY . /app
WORKDIR /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Verify files are in place
RUN ls -la /app && \
ls -la /app/Finance\ Data/
EXPOSE 8501
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |