Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -5,13 +5,16 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|
| 5 |
HOME=/home/user \
|
| 6 |
PATH=/home/user/.local/bin:$PATH
|
| 7 |
|
| 8 |
-
#
|
| 9 |
RUN apt-get update && \
|
|
|
|
|
|
|
|
|
|
| 10 |
apt-get install -y git python3.9 python3.9-dev python3-pip wget libgl1-mesa-glx && \
|
| 11 |
apt-get clean && \
|
| 12 |
rm -rf /var/lib/apt/lists/* && \
|
| 13 |
wget https://bootstrap.pypa.io/get-pip.py && \
|
| 14 |
-
python3.9 get-pip.py && \
|
| 15 |
rm get-pip.py
|
| 16 |
|
| 17 |
# Set up a new user named "user" with user ID 1000
|
|
|
|
| 5 |
HOME=/home/user \
|
| 6 |
PATH=/home/user/.local/bin:$PATH
|
| 7 |
|
| 8 |
+
# Add the deadsnakes PPA for Python 3.9
|
| 9 |
RUN apt-get update && \
|
| 10 |
+
apt-get install -y software-properties-common && \
|
| 11 |
+
add-apt-repository ppa:deadsnakes/ppa && \
|
| 12 |
+
apt-get update && \
|
| 13 |
apt-get install -y git python3.9 python3.9-dev python3-pip wget libgl1-mesa-glx && \
|
| 14 |
apt-get clean && \
|
| 15 |
rm -rf /var/lib/apt/lists/* && \
|
| 16 |
wget https://bootstrap.pypa.io/get-pip.py && \
|
| 17 |
+
python3.9 get-pip.py && \
|
| 18 |
rm get-pip.py
|
| 19 |
|
| 20 |
# Set up a new user named "user" with user ID 1000
|