mingming58 commited on
Commit
6656df6
·
1 Parent(s): 7eb7d94

Add all deployment files

Browse files
Files changed (3) hide show
  1. Dockerfile +10 -0
  2. app.py +10 -0
  3. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY app.py .
9
+
10
+ CMD ["python", "app.py"]
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route('/')
6
+ def hello():
7
+ return {"Hello": "World!"}
8
+
9
+ if __name__ == '__main__':
10
+ app.run(host='0.0.0.0', port=7860)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ flask