hysts HF staff commited on
Commit
52c715e
1 Parent(s): c81e62d
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -26,7 +26,7 @@ RUN apt-get update && \
26
  RUN useradd -m -u 1000 user
27
  USER user
28
  ENV HOME=/home/user \
29
- PATH=/home/user/.local/bin:${PATH}
30
  WORKDIR ${HOME}/app
31
 
32
  RUN curl https://pyenv.run | bash
@@ -47,15 +47,15 @@ RUN pip install --no-cache-dir -U \
47
  scikit-image==0.19.2 \
48
  opencv-python-headless==4.6.0.66 \
49
  colored==1.4.4
50
- RUN pip install --no-cache-dir -U gradio==3.16.2
51
 
52
  COPY --chown=1000 . ${HOME}/app
53
- RUN cd CutLER && git apply ../patch
54
  ENV PYTHONPATH=${HOME}/app \
55
- PYTHONUNBUFFERED=1 \
56
- GRADIO_ALLOW_FLAGGING=never \
57
- GRADIO_NUM_PORTS=1 \
58
- GRADIO_SERVER_NAME=0.0.0.0 \
59
- GRADIO_THEME=huggingface \
60
- SYSTEM=spaces
61
  CMD ["python", "app.py"]
 
26
  RUN useradd -m -u 1000 user
27
  USER user
28
  ENV HOME=/home/user \
29
+ PATH=/home/user/.local/bin:${PATH}
30
  WORKDIR ${HOME}/app
31
 
32
  RUN curl https://pyenv.run | bash
 
47
  scikit-image==0.19.2 \
48
  opencv-python-headless==4.6.0.66 \
49
  colored==1.4.4
50
+ RUN pip install --no-cache-dir -U gradio==3.23.0
51
 
52
  COPY --chown=1000 . ${HOME}/app
53
+ RUN cd CutLER && patch -p1 < ../patch
54
  ENV PYTHONPATH=${HOME}/app \
55
+ PYTHONUNBUFFERED=1 \
56
+ GRADIO_ALLOW_FLAGGING=never \
57
+ GRADIO_NUM_PORTS=1 \
58
+ GRADIO_SERVER_NAME=0.0.0.0 \
59
+ GRADIO_THEME=huggingface \
60
+ SYSTEM=spaces
61
  CMD ["python", "app.py"]