Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -8
Dockerfile
CHANGED
|
@@ -1,16 +1,23 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
RUN mkdir /app/github_repo && chmod 777 /app/github_repo
|
| 9 |
-
|
| 10 |
-
# Copy application files directly without specifying user permissions
|
| 11 |
COPY . /app
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
RUN pip install --upgrade pip
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y \
|
| 4 |
+
build-essential \
|
| 5 |
+
curl \
|
| 6 |
+
software-properties-common \
|
| 7 |
+
git \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# This sets the /app directory as the working directory for any RUN, CMD, ENTRYPOINT, or COPY instructions that follow.
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
+
# This copies everything in your current directory to the /app directory in the container.
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY . /app
|
| 15 |
|
| 16 |
+
# This runs pip install for all the packages listed in your requirements.txt file.
|
| 17 |
+
RUN pip install --upgrade pip
|
| 18 |
+
RUN pip install -r requirements.txt
|
| 19 |
+
|
| 20 |
+
#EXPOSE 8501
|
| 21 |
+
#I commented out EXPOSE 8501, and gave 7860 in CMD, since it works. Funny? The building of Streamlit never stops with 8501!!!
|
| 22 |
|
| 23 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|