Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -33,9 +33,7 @@ RUN apt-get update && apt-get install -y \
|
|
33 |
# Install Python 3.8 and pip
|
34 |
RUN add-apt-repository ppa:deadsnakes/ppa \
|
35 |
&& apt-get update \
|
36 |
-
&& apt-get install -y python3.8 python3
|
37 |
-
&& curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
|
38 |
-
&& python3.8 /tmp/get-pip.py \
|
39 |
&& apt-get clean;
|
40 |
|
41 |
# Set up JAVA_HOME
|
@@ -58,12 +56,15 @@ ENV HOME=/home/${NB_USER} \
|
|
58 |
WORKDIR ${HOME}
|
59 |
|
60 |
# Upgrade pip and install Python dependencies
|
61 |
-
RUN python3 -m pip install --upgrade pip
|
62 |
COPY requirements.txt /tmp/requirements.txt
|
63 |
-
RUN python3 -m pip install -r /tmp/requirements.txt
|
64 |
|
65 |
# Copy the application code into the container at /home/jovyan
|
66 |
COPY --chown=${NB_USER}:${NB_USER} . ${HOME}
|
67 |
|
68 |
# Expose port for Streamlit
|
69 |
EXPOSE 7860
|
|
|
|
|
|
|
|
33 |
# Install Python 3.8 and pip
|
34 |
RUN add-apt-repository ppa:deadsnakes/ppa \
|
35 |
&& apt-get update \
|
36 |
+
&& apt-get install -y python3.8 python3-pip \
|
|
|
|
|
37 |
&& apt-get clean;
|
38 |
|
39 |
# Set up JAVA_HOME
|
|
|
56 |
WORKDIR ${HOME}
|
57 |
|
58 |
# Upgrade pip and install Python dependencies
|
59 |
+
RUN python3.8 -m pip install --upgrade pip
|
60 |
COPY requirements.txt /tmp/requirements.txt
|
61 |
+
RUN python3.8 -m pip install -r /tmp/requirements.txt
|
62 |
|
63 |
# Copy the application code into the container at /home/jovyan
|
64 |
COPY --chown=${NB_USER}:${NB_USER} . ${HOME}
|
65 |
|
66 |
# Expose port for Streamlit
|
67 |
EXPOSE 7860
|
68 |
+
|
69 |
+
# Define the entry point for the container
|
70 |
+
ENTRYPOINT ["streamlit", "run", "Demo.py", "--server.port=7860", "--server.address=0.0.0.0"]
|