shiveshnavin commited on
Commit
ba7863c
·
0 Parent(s):

Add docker files

Browse files
Files changed (4) hide show
  1. .gitignore +3 -0
  2. Dockerfile +3 -0
  3. Dockerfile.build +16 -0
  4. README.MD +23 -0
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Workspace
2
+ .cache
3
+ *__pycache__
Dockerfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ FROM semibit/depthflow:latest
2
+ EXPOSE 7860
3
+ ENTRYPOINT ["uvx", "depthflow", "gradio"]
Dockerfile.build ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/astral-sh/uv:debian
2
+ EXPOSE 7860
3
+ RUN apt-get update
4
+ RUN apt-get install -y libx11-dev
5
+
6
+ RUN apt-get install -y libxrender1 libxtst6 libxi6
7
+ RUN apt-get install -yffmpeg libsm6 libxext6
8
+ RUN apt-get install -y libglfw3-dev libgles2-mesa-dev
9
+
10
+ # SSH into the container docker run -it -p 7860:7860 myusername/depthflow:latest sh
11
+ # run `uvx depthflow gradio --share` to start the setup
12
+ # Do all the animatiosn u will use once so models gets downloaded
13
+ # then commit the container as a new image `myusername/depthflow:latest`
14
+ # docker container ls
15
+ # docker commit <Container id> myusername/depthflow:latest
16
+ # docker push myusername/depthflow:latest
README.MD ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Deepthflow Dockerization
2
+
3
+ Build base image
4
+ ```
5
+ docker build -t myusername/depthflow:latest -f Dockerfile.build
6
+ ```
7
+
8
+ Then
9
+ ```
10
+ # SSH into the container docker run -it -p 7860:7860 myusername/depthflow:latest sh
11
+ # run `uvx depthflow gradio --share` to start the setup
12
+ # Do all the animatiosn u will use once so models gets downloaded
13
+ # then commit the container as a new image `myusername/depthflow:latest`
14
+ # docker container ls
15
+ # docker commit <Container id> myusername/depthflow:latest
16
+ # docker push myusername/depthflow:latest
17
+ ```
18
+
19
+ Then build and run the executable image
20
+ ```
21
+ docker build -t myusername/depthflow-run:latest -f Dockerfile
22
+ docker run -p 7860:7860 -it myusername/depthflow-run:latest
23
+ ```