Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
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
|
60 |
COPY requirements.txt /tmp/requirements.txt
|
61 |
-
RUN
|
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}
|