Spaces:
Running
Running
abdullahmubeen10
commited on
Update Dockerfile
Browse files- Dockerfile +6 -10
Dockerfile
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
FROM ubuntu:16.04
|
2 |
|
3 |
-
#
|
4 |
-
ENV NB_USER=jovyan
|
5 |
-
ENV NB_UID=1000
|
6 |
-
ENV HOME=/home/${NB_USER}
|
7 |
-
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
|
8 |
-
|
9 |
-
# Install required system packages and Python 3.6
|
10 |
RUN apt-get update && apt-get install -y \
|
11 |
software-properties-common \
|
12 |
wget \
|
@@ -31,11 +25,13 @@ RUN apt-get update && apt-get install -y \
|
|
31 |
&& apt-get clean \
|
32 |
&& update-ca-certificates -f
|
33 |
|
34 |
-
#
|
35 |
-
RUN python3.5 -m pip install --upgrade pip
|
36 |
|
37 |
-
#
|
38 |
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
|
39 |
RUN python3.5 -m pip install --no-cache-dir -r /tmp/requirements.txt
|
40 |
|
41 |
# Create a new user
|
|
|
1 |
FROM ubuntu:16.04
|
2 |
|
3 |
+
# Install Python 3.5 and basic tools
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
software-properties-common \
|
6 |
wget \
|
|
|
25 |
&& apt-get clean \
|
26 |
&& update-ca-certificates -f
|
27 |
|
28 |
+
# Install a pip version compatible with Python 3.5
|
29 |
+
RUN python3.5 -m pip install --upgrade "pip<21.0"
|
30 |
|
31 |
+
# Copy requirements file
|
32 |
COPY requirements.txt /tmp/requirements.txt
|
33 |
+
|
34 |
+
# Install Python dependencies
|
35 |
RUN python3.5 -m pip install --no-cache-dir -r /tmp/requirements.txt
|
36 |
|
37 |
# Create a new user
|