Paolo-Fraccaro commited on
Commit
e3ef12e
1 Parent(s): 84b3d20

try install before switch to user

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -18,7 +18,8 @@ COPY ./requirements.txt /code/requirements.txt
18
  # add conda
19
  RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
20
  RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
21
-
 
22
 
23
 
24
  # Set up a new user named "user" with user ID 1000
@@ -36,9 +37,6 @@ ENV HOME=/home/user \
36
  GRADIO_THEME=huggingface \
37
  SYSTEM=spaces
38
 
39
- RUN /code/Miniconda3-latest-Linux-x86_64.sh -b -p /code/miniconda
40
- ENV PATH="/miniconda/bin:${PATH}"
41
-
42
 
43
  # RUN /miniconda/bin/conda init bash
44
 
 
18
  # add conda
19
  RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
20
  RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
21
+ RUN /code/Miniconda3-latest-Linux-x86_64.sh -b -p /code/miniconda
22
+ ENV PATH="/miniconda/bin:${PATH}"
23
 
24
 
25
  # Set up a new user named "user" with user ID 1000
 
37
  GRADIO_THEME=huggingface \
38
  SYSTEM=spaces
39
 
 
 
 
40
 
41
  # RUN /miniconda/bin/conda init bash
42