Added Dockerfile
The server can now be used on Docker
This commit is contained in:
parent
edc3e55ead
commit
958c5db462
5 changed files with 67 additions and 5 deletions
|
@ -2,13 +2,14 @@
|
|||
import mariadb as sql
|
||||
from os import environ
|
||||
import time,re
|
||||
from config import *
|
||||
|
||||
## params populated with environment variables, defaults can be changed for a permanent solution
|
||||
conn_params={
|
||||
"user" : environ.get('MARIADB_USER') if environ.get('MARIADB_USER') else MARIADB_USER,
|
||||
"password" : environ.get('MARIADB_PASSWORD') if environ.get('MARIADB_PASSWORD') else MARIADB_PASSWORD,
|
||||
"host" : environ.get('MARIADB_HOST') if environ.get('MARIADB_HOST') else MARIADB_HOST,
|
||||
"database" : environ.get('MARIADB_DB') if environ.get('MARIADB_DB') else MARIAD_DB
|
||||
"database" : environ.get('MARIADB_DB') if environ.get('MARIADB_DB') else MARIADB_DB
|
||||
}
|
||||
|
||||
class db:
|
||||
|
|
4
flask/wsgi.py
Normal file
4
flask/wsgi.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from app import app
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
Loading…
Add table
Add a link
Reference in a new issue