mirror of
https://github.com/tebarius/Docker-Flask-QR.git
synced 2025-12-20 14:23:29 +01:00
1.4.0
This commit is contained in:
@@ -4,7 +4,7 @@ ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
|
||||
LABEL authors="tebarius"
|
||||
LABEL version="1.3.0"
|
||||
LABEL version="1.4.0"
|
||||
LABEL description="QR-Code-Generator-Server with Flask-App"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# notwendige pakete via pip:
|
||||
# pip install Flask-QRcode
|
||||
# pip install Flask-QRcode waitress
|
||||
from flask import Flask, render_template, request
|
||||
from flask_qrcode import QRcode
|
||||
|
||||
@@ -231,4 +231,7 @@ def makeqr():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host='0.0.0.0', port=8002)
|
||||
# app.run(host='0.0.0.0', port=8002)
|
||||
from waitress import serve
|
||||
print("http://localhost:8002")
|
||||
serve(app, host="0.0.0.0", port=8002)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# notwendige pakete via pip:
|
||||
# pip install Flask-QRcode
|
||||
# pip install Flask-QRcode waitress
|
||||
from flask import Flask, render_template, request
|
||||
from flask_qrcode import QRcode
|
||||
|
||||
@@ -232,4 +232,7 @@ def makeqr():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host='0.0.0.0', port=8002)
|
||||
# app.run(host='0.0.0.0', port=8002)
|
||||
from waitress import serve
|
||||
print("http://localhost:8002")
|
||||
serve(app, host="0.0.0.0", port=8002)
|
||||
|
||||
Binary file not shown.
@@ -11,7 +11,7 @@ Um lokal das ganze zu testen werden nur die Dateien aus dem app-Verzeichnis ben
|
||||
Voraussetzung ist eine funktionierende Python Installation und das Flask-Framework inclusive Flask-QRcode welches sich
|
||||
recht einfach über die Konsole mit ...
|
||||
|
||||
pip install Flask-QRcode
|
||||
pip install Flask-QRcode waitress
|
||||
... installieren lässt.
|
||||
|
||||
Zum Starten dann eine der beiden .py Dateien benutzen, je nachdem welcher
|
||||
|
||||
Reference in New Issue
Block a user