Spaces:
Running
on
T4
Running
on
T4
praeclarumjj3
commited on
Commit
•
01aee65
1
Parent(s):
4ab1d05
Add pyenv
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
@@ -13,15 +13,15 @@ RUN apt-get update && apt-get install -y \
|
|
13 |
RUN useradd -ms /bin/bash admin
|
14 |
USER admin
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
ENV WORKDIR=/code
|
27 |
WORKDIR $WORKDIR
|
|
|
13 |
RUN useradd -ms /bin/bash admin
|
14 |
USER admin
|
15 |
|
16 |
+
ENV HOME=/home/user \
|
17 |
+
PATH=/home/user/.local/bin:$PATH
|
18 |
+
|
19 |
+
RUN curl https://pyenv.run | bash
|
20 |
+
ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH
|
21 |
+
RUN pyenv install 3.8.15 && \
|
22 |
+
pyenv global 3.8.15 && \
|
23 |
+
pyenv rehash && \
|
24 |
+
pip install --no-cache-dir --upgrade pip setuptools wheel
|
25 |
|
26 |
ENV WORKDIR=/code
|
27 |
WORKDIR $WORKDIR
|