ygauravyy commited on
Commit
f5cb3be
1 Parent(s): 8c63db9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -29,7 +29,11 @@ RUN pip install mmdet==2.27.0
29
  RUN pip install torchserve
30
  RUN pip install mmpose==0.29.0
31
  RUN pip install torchvision==0.15.1
32
- RUN pip install numpy==1.24.4 scikit-image scipy opencv-python requests pyyaml flask glfw PyOpenGL Pillow shapely tqdm gradio
 
 
 
 
33
 
34
  # bugfix for xtcocoapi, a dependency of mmpose
35
  RUN git clone https://github.com/jin-s13/xtcocoapi.git
@@ -52,8 +56,10 @@ COPY setup.py /app/setup.py
52
  COPY animated_drawings /app/animated_drawings
53
  COPY app.py /app/app.py
54
  COPY examples /app/examples
 
55
 
56
  RUN pip install -e .
 
57
 
58
  # Pre-create directories and set permissions
59
  RUN mkdir -p uploads_gradio outputs_gradio flagged && \
@@ -64,7 +70,6 @@ USER appuser
64
  EXPOSE 7860
65
 
66
  # Start TorchServe, warm-up models, then run the app.
67
- # Using xvfb-run for headless rendering.
68
  CMD sh -c "\
69
  torchserve --start --ncs --ts-config /home/torchserve/config.properties && \
70
  sleep 15 && \
 
29
  RUN pip install torchserve
30
  RUN pip install mmpose==0.29.0
31
  RUN pip install torchvision==0.15.1
32
+ RUN pip install numpy==1.24.4 scikit-image scipy opencv-python requests pyyaml flask glfw PyOpenGL Pillow shapely tqdm langid
33
+ RUN pip install fastapi==0.100.0
34
+ RUN pip install uvicorn==0.22.0
35
+ RUN pip install requests==2.31.0
36
+
37
 
38
  # bugfix for xtcocoapi, a dependency of mmpose
39
  RUN git clone https://github.com/jin-s13/xtcocoapi.git
 
56
  COPY animated_drawings /app/animated_drawings
57
  COPY app.py /app/app.py
58
  COPY examples /app/examples
59
+ COPY requirements.txt /app/requirements.txt
60
 
61
  RUN pip install -e .
62
+ RUN pip install -r requirements.txt
63
 
64
  # Pre-create directories and set permissions
65
  RUN mkdir -p uploads_gradio outputs_gradio flagged && \
 
70
  EXPOSE 7860
71
 
72
  # Start TorchServe, warm-up models, then run the app.
 
73
  CMD sh -c "\
74
  torchserve --start --ncs --ts-config /home/torchserve/config.properties && \
75
  sleep 15 && \