Spaces:
Sleeping
Sleeping
File size: 754 Bytes
13e4910 6021773 ec6bb33 6021773 13e4910 c138d19 13e4910 9912b12 13e4910 c138d19 13e4910 c138d19 6021773 d6d366b | 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 35 36 37 38 39 | FROM python:3.13.5-slim
WORKDIR /app
# Copy setup script and make it executable
COPY requirements.txt .
COPY setup.sh .
RUN chmod +x setup.sh
# Run the setup script
RUN ./setup.sh
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN pip3 install -r requirements.txt
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
#------------
# Copy the rest of the application
#COPY . .
# Expose the port the app runs on
#EXPOSE 7860
# Command to run the application
#CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|