leolxliu commited on
Commit
b7f4c03
·
1 Parent(s): 0dcd183
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -25,12 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
25
  libgl1 \
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
- ENV PATH="/root/.pyenv/shims:/root/.pyenv/bin:$PATH"
29
- ARG PYTHON_VERSION=3.8
30
 
31
- RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
32
- pyenv install $PYTHON_VERSION && \
33
- pyenv global $PYTHON_VERSION
34
 
35
  # install deps
36
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -44,6 +39,14 @@ RUN useradd -m -u 1000 user
44
  # Switch to the "user" user
45
  USER user
46
 
 
 
 
 
 
 
 
 
47
  ENV HOME=/home/user \
48
  CUDA_HOME=/usr/local/cuda \
49
  PATH=/home/user/.local/bin:$PATH \
 
25
  libgl1 \
26
  && rm -rf /var/lib/apt/lists/*
27
 
 
 
28
 
 
 
 
29
 
30
  # install deps
31
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
39
  # Switch to the "user" user
40
  USER user
41
 
42
+
43
+ ENV PATH="/home/user/.pyenv/shims:/home/user/.pyenv/bin:$PATH"
44
+ ARG PYTHON_VERSION=3.8
45
+
46
+ RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
47
+ pyenv install $PYTHON_VERSION && \
48
+ pyenv global $PYTHON_VERSION
49
+
50
  ENV HOME=/home/user \
51
  CUDA_HOME=/usr/local/cuda \
52
  PATH=/home/user/.local/bin:$PATH \