shiveshnavin commited on
Commit
cfe963c
·
1 Parent(s): c84ef14

Fix docker

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -2
  2. Dockerfile.build +2 -1
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM semibit/depthflow:latest
2
  EXPOSE 7860
3
-
 
4
  # Pass CPU
5
- ENTRYPOINT ["/bin/bash", "-c", "echo \"cpu\" | uvx depthflow gradio"]
 
1
  FROM semibit/depthflow:latest
2
  EXPOSE 7860
3
+ RUN apt-get install -y util-linux
4
+ RUN
5
  # Pass CPU
6
+ ENTRYPOINT ["/bin/bash", "-c", "printf \"cpu\n\" | script -q /dev/null -c \"uvx depthflow gradio\""]
Dockerfile.build CHANGED
@@ -6,7 +6,8 @@ RUN apt-get install -y libx11-dev
6
  RUN apt-get install -y libxrender1 libxtst6 libxi6
7
  RUN apt-get install -y ffmpeg libsm6 libxext6
8
  RUN apt-get install -y libglfw3-dev libgles2-mesa-dev
9
- RUN echo "cpu" | uvx depthflow gradio
 
10
 
11
  # SSH into the container docker run -it -p 7860:7860 myusername/depthflow:latest sh
12
  # run `uvx depthflow gradio --share` to start the setup
 
6
  RUN apt-get install -y libxrender1 libxtst6 libxi6
7
  RUN apt-get install -y ffmpeg libsm6 libxext6
8
  RUN apt-get install -y libglfw3-dev libgles2-mesa-dev
9
+ RUN apt-get install -y util-linux
10
+ # RUN printf "cpu\n" | script -q /dev/null -c "uvx depthflow gradio"
11
 
12
  # SSH into the container docker run -it -p 7860:7860 myusername/depthflow:latest sh
13
  # run `uvx depthflow gradio --share` to start the setup