Spaces:
Sleeping
Sleeping
Commit ·
7817a97
1
Parent(s): a8105db
Update Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
CHANGED
|
@@ -30,6 +30,24 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
|
| 30 |
apt-get install -y nodejs && \
|
| 31 |
npm install -g configurable-http-proxy
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Create a working directory
|
| 34 |
WORKDIR /app
|
| 35 |
|
|
|
|
| 30 |
apt-get install -y nodejs && \
|
| 31 |
npm install -g configurable-http-proxy
|
| 32 |
|
| 33 |
+
# Adding repository for python3.11
|
| 34 |
+
RUN add-apt-repository ppa:deadsnakes/ppa -y && \
|
| 35 |
+
|
| 36 |
+
# Installing python3.11
|
| 37 |
+
$APT_INSTALL \
|
| 38 |
+
python3.11 \
|
| 39 |
+
python3.11-dev \
|
| 40 |
+
python3.11-venv \
|
| 41 |
+
python3-distutils-extra
|
| 42 |
+
|
| 43 |
+
# Add symlink so python and python3 commands use same python3.9 executable
|
| 44 |
+
RUN ln -s /usr/bin/python3.11 /usr/local/bin/python3 && \
|
| 45 |
+
ln -s /usr/bin/python3.11 /usr/local/bin/python
|
| 46 |
+
|
| 47 |
+
# Installing pip
|
| 48 |
+
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
|
| 49 |
+
ENV PATH=$PATH:/root/.local/bin
|
| 50 |
+
|
| 51 |
# Create a working directory
|
| 52 |
WORKDIR /app
|
| 53 |
|