Spaces:
Runtime error
Runtime error
File size: 875 Bytes
5d1b722 43c61aa c367116 43c61aa c367116 5d1b722 dc0d6c9 e6f585a c367116 92b0f08 2d91db2 c367116 58255bc c367116 |
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.10-slim
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# This sets the /app directory as the working directory for any RUN, CMD, ENTRYPOINT, or COPY instructions that follow.
WORKDIR /app
#GITHUB REPO Folder
RUN mkdir /app/github_repo && chmod 777 /app/github_repo
# This copies everything in your current directory to the /app directory in the container.
COPY . /app
# This runs pip install for all the packages listed in your requirements.txt file.
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
#EXPOSE 8501
#I commented out EXPOSE 8501, and gave 7860 in CMD, since it works. Funny? The building of Streamlit never stops with 8501!!!
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |