ituvtu commited on
Commit
dc602c0
·
1 Parent(s): 2f5bdb9

Add Docker configuration and artifacts for GitHub

Browse files
Files changed (2) hide show
  1. .dockerignore +25 -0
  2. Dockerfile +15 -0
.dockerignore ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .git
2
+ .gitignore
3
+ .gitattributes
4
+
5
+ .vscode
6
+ .idea
7
+
8
+
9
+ .venv
10
+ venv
11
+ env
12
+
13
+
14
+ Dockerfile
15
+ .dockerignore
16
+
17
+
18
+ README.md
19
+ assets
20
+
21
+
22
+ __pycache__
23
+ *.pyc
24
+ *.pyo
25
+ *.pyd
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ EXPOSE 7860
12
+
13
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
14
+
15
+ CMD ["python", "app.py"]