ALYYAN commited on
Commit
5fc9fbb
·
0 Parent(s):

Initial test commit

Browse files
Files changed (3) hide show
  1. Dockerfile_test +7 -0
  2. app_test.py +9 -0
  3. requirements_test.txt +2 -0
Dockerfile_test ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.8-slim
2
+ WORKDIR /app
3
+ COPY requirements_test.txt .
4
+ RUN pip install -r requirements_test.txt
5
+ COPY app_test.py .
6
+ EXPOSE 8080
7
+ CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app_test:app"]
app_test.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask
2
+ app = Flask(__name__)
3
+
4
+ @app.route("/")
5
+ def hello():
6
+ return "<h1>Hello, Docker! My deployment is working!</h1>"
7
+
8
+ if __name__ == "__main__":
9
+ app.run(host="0.0.0.0", port=8080)
requirements_test.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Flask
2
+ gunicorn