fix pyenv install
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -8,6 +8,9 @@ RUN apt-get update && \
|
|
8 |
RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
RUN curl https://pyenv.run | bash
|
|
|
|
|
|
|
11 |
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv rehash
|
12 |
# RUN pip install --no-cache-dir --upgrade pip==22.3.1 setuptools wheel && \
|
13 |
# pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
|
|
8 |
RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
RUN curl https://pyenv.run | bash
|
11 |
+
RUN export PYENV_ROOT="$HOME/.pyenv" && \
|
12 |
+
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" && \
|
13 |
+
eval "$(pyenv init -)"
|
14 |
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv rehash
|
15 |
# RUN pip install --no-cache-dir --upgrade pip==22.3.1 setuptools wheel && \
|
16 |
# pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
|