Yuliang commited on
Commit
e6dfb7b
1 Parent(s): eeb23d9

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -6
  2. README.md +1 -2
Dockerfile CHANGED
@@ -3,6 +3,9 @@ FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
 
 
 
6
  libgl1 \
7
  freeglut3-dev \
8
  unzip \
@@ -20,6 +23,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
20
  libeigen3-dev \
21
  python3.8 \
22
  python3-pip \
 
23
  nvidia-cuda-toolkit \
24
  opencv-python-headless \
25
  && rm -rf /var/lib/apt/lists/*
@@ -47,6 +51,7 @@ ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH}
47
 
48
  # Set home to the user's home directory
49
  ENV HOME=/home/user \
 
50
  PYTHONPATH=$HOME/app \
51
  PYTHONUNBUFFERED=1 \
52
  GRADIO_ALLOW_FLAGGING=never \
@@ -66,14 +71,14 @@ RUN cd /tmp && pip install -r requirements.txt
66
  RUN pip install https://download.is.tue.mpg.de/icon/HF/kaolin-0.11.0-cp38-cp38-linux_x86_64.whl
67
  RUN pip install https://download.is.tue.mpg.de/icon/HF/pytorch3d-0.7.0-cp38-cp38-linux_x86_64.whl
68
 
69
- # Set the working directory to the user's home directory
70
- WORKDIR $HOME
71
-
72
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
73
- COPY --chown=user . $HOME
74
  RUN chmod 777 $HOME
75
-
76
  ENV TRANSFORMERS_CACHE=/tmp
77
  ENV MPLCONFIGDIR=/tmp
78
 
 
 
 
 
 
 
79
  CMD ["python", "app.py"]
 
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6
+ curl \
7
+ git \
8
+ wget \
9
  libgl1 \
10
  freeglut3-dev \
11
  unzip \
 
23
  libeigen3-dev \
24
  python3.8 \
25
  python3-pip \
26
+ python-is-python3 \
27
  nvidia-cuda-toolkit \
28
  opencv-python-headless \
29
  && rm -rf /var/lib/apt/lists/*
 
51
 
52
  # Set home to the user's home directory
53
  ENV HOME=/home/user \
54
+ PATH=/home/user/.local/bin:$PATH \
55
  PYTHONPATH=$HOME/app \
56
  PYTHONUNBUFFERED=1 \
57
  GRADIO_ALLOW_FLAGGING=never \
 
71
  RUN pip install https://download.is.tue.mpg.de/icon/HF/kaolin-0.11.0-cp38-cp38-linux_x86_64.whl
72
  RUN pip install https://download.is.tue.mpg.de/icon/HF/pytorch3d-0.7.0-cp38-cp38-linux_x86_64.whl
73
 
 
 
 
 
 
74
  RUN chmod 777 $HOME
 
75
  ENV TRANSFORMERS_CACHE=/tmp
76
  ENV MPLCONFIGDIR=/tmp
77
 
78
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
79
+ COPY --chown=user . $HOME/app
80
+
81
+ # Set the working directory to the user's home directory
82
+ WORKDIR $HOME/app
83
+
84
  CMD ["python", "app.py"]
README.md CHANGED
@@ -1,11 +1,10 @@
1
  ---
2
  title: ICON - Clothed Human Digitization
3
- metaTitle: Making yourself an ICON, by Yuliang Xiu
4
  emoji: 🤼
5
  colorFrom: indigo
6
  colorTo: yellow
7
  sdk: docker
8
- app_file: app.py
9
  pinned: true
10
  ---
11
 
 
1
  ---
2
  title: ICON - Clothed Human Digitization
3
+ metaTitle: ICON-Avatarify from Photo
4
  emoji: 🤼
5
  colorFrom: indigo
6
  colorTo: yellow
7
  sdk: docker
 
8
  pinned: true
9
  ---
10