ygauravyy commited on
Commit
cb8fce9
1 Parent(s): 3be0778

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
 
3
  FROM continuumio/miniconda3:24.1.2-0
4
 
5
- # install os dependencies
6
  RUN mkdir -p /usr/share/man/man1
7
  RUN apt-get update && \
8
  DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
@@ -16,11 +16,11 @@ RUN apt-get update && \
16
  build-essential \
17
  wget \
18
  xvfb \
 
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
  RUN conda install python=3.8.13 -y
22
 
23
- # Install Python and model dependencies
24
  RUN pip install openmim
25
  RUN pip install torch==2.0.0
26
  RUN mim install mmcv-full==1.7.0
@@ -61,5 +61,5 @@ USER appuser
61
 
62
  EXPOSE 7860
63
 
64
- # Start TorchServe, wait a bit, then run app inside Xvfb
65
  CMD sh -c "torchserve --start --ts-config /home/torchserve/config.properties && sleep 10 && xvfb-run -a python app.py"
 
2
 
3
  FROM continuumio/miniconda3:24.1.2-0
4
 
5
+ # install os dependencies including xauth
6
  RUN mkdir -p /usr/share/man/man1
7
  RUN apt-get update && \
8
  DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
 
16
  build-essential \
17
  wget \
18
  xvfb \
19
+ xauth \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
  RUN conda install python=3.8.13 -y
23
 
 
24
  RUN pip install openmim
25
  RUN pip install torch==2.0.0
26
  RUN mim install mmcv-full==1.7.0
 
61
 
62
  EXPOSE 7860
63
 
64
+ # Start TorchServe in background, wait a bit, then run app in xvfb-run
65
  CMD sh -c "torchserve --start --ts-config /home/torchserve/config.properties && sleep 10 && xvfb-run -a python app.py"