AriesLab/Introduction.to.Geology.II
0
1FROM python:3.13.5-slim2 3WORKDIR /app4 5RUN apt-get update && apt-get install -y \6 build-essential \7 curl \8 git \9 && rm -rf /var/lib/apt/lists/*10 11COPY requirements.txt ./12 13# --- CHANGE 1: Copy your app file directly ---14# Instead of copying a 'src' folder, we now copy your main app file.15# Replace 'app.py' if your file has a different name.16COPY app.py ./17 18RUN pip3 install -r requirements.txt19 20EXPOSE 850121HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health22 23# --- CHANGE 2: Update the path to your app file ---24# The entrypoint now points to 'app.py' in the root of the /app directory.25ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]