jingyangcarl commited on
Commit
5798a3b
·
1 Parent(s): 1817656
Files changed (2) hide show
  1. Dockerfile +6 -3
  2. run.sh +0 -7
Dockerfile CHANGED
@@ -18,10 +18,9 @@ RUN conda run -n gradio pip install --upgrade pip
18
  # RUN conda install -n gradio -c conda-forge open-clip-torch pytorch-lightning
19
  # RUN conda run -n gradio pip install trimesh xatlas scikit-learn opencv-python omegaconf
20
 
21
-
22
  # Set the environment variable to use the gradio environment by default
23
- RUN echo "source activate gradio" > ~/.bashrc
24
- ENV PATH /opt/conda/envs/gradio/bin:$PATH
25
 
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -m -u 1000 user
@@ -32,6 +31,10 @@ RUN conda create -n gradio-user python=3.11
32
  RUN conda run -n gradio-user pip install --upgrade pip
33
  RUN conda run -n gradio-user pip install diffusers["torch"] transformers accelerate xformers
34
  RUN conda run -n gradio-user pip install gradio
 
 
 
 
35
 
36
  # Set home to the user's home directory
37
  ENV HOME=/home/user \
 
18
  # RUN conda install -n gradio -c conda-forge open-clip-torch pytorch-lightning
19
  # RUN conda run -n gradio pip install trimesh xatlas scikit-learn opencv-python omegaconf
20
 
 
21
  # Set the environment variable to use the gradio environment by default
22
+ # RUN echo "source activate gradio" > ~/.bashrc
23
+ # ENV PATH /opt/conda/envs/gradio/bin:$PATH
24
 
25
  # Set up a new user named "user" with user ID 1000
26
  RUN useradd -m -u 1000 user
 
31
  RUN conda run -n gradio-user pip install --upgrade pip
32
  RUN conda run -n gradio-user pip install diffusers["torch"] transformers accelerate xformers
33
  RUN conda run -n gradio-user pip install gradio
34
+ RUN conda run -n gradio pip install controlnet-aux
35
+ RUN conda install -n gradio pytorch3d -c pytorch3d -c conda-forge
36
+ RUN conda install -n gradio -c conda-forge open-clip-torch pytorch-lightning
37
+ RUN conda run -n gradio pip install trimesh xatlas scikit-learn opencv-python omegaconf
38
 
39
  # Set home to the user's home directory
40
  ENV HOME=/home/user \
run.sh CHANGED
@@ -4,13 +4,6 @@ CONDA_ENV=$(head -1 /code/environment.yml | cut -d" " -f2)
4
  eval "$(conda shell.bash hook)"
5
  conda activate gradio-user
6
 
7
- # Kill existing app.py process if running
8
- # if pgrep -f "python app.py" > /dev/null; then
9
- # echo "Stopping existing app.py..."
10
- # pkill -f "python app.py"
11
- # sleep 2 # Small delay to ensure it stops
12
- # fi
13
-
14
  # Start app.py
15
  echo "Starting app.py..."
16
  python app.py
 
4
  eval "$(conda shell.bash hook)"
5
  conda activate gradio-user
6
 
 
 
 
 
 
 
 
7
  # Start app.py
8
  echo "Starting app.py..."
9
  python app.py