abdullahmubeen10 commited on
Commit
4473e29
Β·
verified Β·
1 Parent(s): 55a38d4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -33,7 +33,9 @@ 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 python python3-pip \
 
 
37
  && apt-get clean;
38
 
39
  # Set up JAVA_HOME
@@ -56,15 +58,12 @@ ENV HOME=/home/${NB_USER} \
56
  WORKDIR ${HOME}
57
 
58
  # Upgrade pip and install Python dependencies
59
- RUN python -m pip install --upgrade pip
60
  COPY requirements.txt /tmp/requirements.txt
61
- RUN python -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"]
 
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.8-dev python3.8-distutils \
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
  WORKDIR ${HOME}
59
 
60
  # Upgrade pip and install Python dependencies
61
+ RUN python3 -m pip install --upgrade pip --no-cache-dir
62
  COPY requirements.txt /tmp/requirements.txt
63
+ RUN python3 -m pip install -r /tmp/requirements.txt --no-cache-dir
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