abdullahmubeen10 commited on
Commit
55a38d4
Β·
verified Β·
1 Parent(s): 2d72d31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -33,7 +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-pip \
37
  && apt-get clean;
38
 
39
  # Set up JAVA_HOME
@@ -56,9 +56,9 @@ ENV HOME=/home/${NB_USER} \
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}
 
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
  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}