ygauravyy commited on
Commit
32ac535
1 Parent(s): 7a33ead

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -19,7 +19,7 @@ RUN apt-get update && \
19
 
20
  RUN conda install python=3.8.13 -y
21
 
22
- # Install Python dependencies with pip
23
  RUN pip install openmim
24
  RUN pip install torch==2.0.0
25
  RUN mim install mmcv-full==1.7.0
@@ -28,11 +28,9 @@ RUN pip install torchserve
28
  RUN pip install mmpose==0.29.0
29
  RUN pip install torchvision==0.15.1
30
  RUN pip install numpy==1.24.4
 
31
  RUN pip install gradio
32
 
33
- # **Add these additional dependencies:**
34
- RUN pip install scikit-image scipy opencv-python requests pyyaml
35
-
36
  # bugfix for xtcocoapi, an mmpose dependency
37
  RUN git clone https://github.com/jin-s13/xtcocoapi.git
38
  WORKDIR xtcocoapi
@@ -50,9 +48,16 @@ COPY config.properties /home/torchserve/config.properties
50
  RUN adduser --disabled-password --gecos '' --uid 1000 appuser
51
 
52
  WORKDIR /app
53
- COPY app.py /app
 
 
 
 
54
  COPY examples /app/examples
55
 
 
 
 
56
  # Pre-create directories needed by the app and Gradio, and set permissions
57
  RUN mkdir -p uploads_gradio outputs_gradio flagged && \
58
  chown -R appuser:appuser /app
 
19
 
20
  RUN conda install python=3.8.13 -y
21
 
22
+ # Install Python and model dependencies
23
  RUN pip install openmim
24
  RUN pip install torch==2.0.0
25
  RUN mim install mmcv-full==1.7.0
 
28
  RUN pip install mmpose==0.29.0
29
  RUN pip install torchvision==0.15.1
30
  RUN pip install numpy==1.24.4
31
+ RUN pip install scikit-image scipy opencv-python requests pyyaml flask glfw PyOpenGL Pillow shapely tqdm
32
  RUN pip install gradio
33
 
 
 
 
34
  # bugfix for xtcocoapi, an mmpose dependency
35
  RUN git clone https://github.com/jin-s13/xtcocoapi.git
36
  WORKDIR xtcocoapi
 
48
  RUN adduser --disabled-password --gecos '' --uid 1000 appuser
49
 
50
  WORKDIR /app
51
+
52
+ # Copy application files, including setup.py and animated_drawings package
53
+ COPY setup.py /app/setup.py
54
+ COPY animated_drawings /app/animated_drawings
55
+ COPY app.py /app/app.py
56
  COPY examples /app/examples
57
 
58
+ # Install animated_drawings package in editable mode
59
+ RUN pip install -e .
60
+
61
  # Pre-create directories needed by the app and Gradio, and set permissions
62
  RUN mkdir -p uploads_gradio outputs_gradio flagged && \
63
  chown -R appuser:appuser /app