Initial commit

This commit is contained in:
github-classroom[bot]
2024-02-26 19:09:59 +00:00
committed by GitHub
commit 1209dfe48d
10 changed files with 2214 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
.dockerignore
Dockerfile
README.md
.venv/
__pycache__/
+2
View File
@@ -0,0 +1,2 @@
.venv/
__pycache__/
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.12.1-alpine3.19
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
ENV SERVER_PORT=8080
CMD ["sh", "-c", "exec python3 -m flask run --host=0.0.0.0 --port=$SERVER_PORT"]
+10
View File
@@ -0,0 +1,10 @@
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/api/ping', methods=['GET'])
def send():
return jsonify({"status": "ok"}), 200
if __name__ == "__main__":
app.run()
+7
View File
@@ -0,0 +1,7 @@
blinker==1.7.0
click==8.1.7
Flask==3.0.1
itsdangerous==2.1.2
Jinja2==3.1.3
MarkupSafe==2.1.4
Werkzeug==3.0.1