fuck waitress
All checks were successful
Build and Push Docker Image / build (push) Successful in 55s
All checks were successful
Build and Push Docker Image / build (push) Successful in 55s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:3.12-slim AS base
|
||||
FROM python:3-slim AS base
|
||||
WORKDIR /app
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt && rm requirements.txt
|
||||
|
||||
@@ -2,7 +2,6 @@ from flask import Flask, render_template, request, send_from_directory
|
||||
from flask_minify import minify
|
||||
from flask_compress import Compress
|
||||
from http.client import responses
|
||||
import waitress
|
||||
import ping3
|
||||
import hashlib
|
||||
|
||||
@@ -65,8 +64,4 @@ def httpcodes(status):
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if isProdution:
|
||||
print("Starting waitress server")
|
||||
waitress.serve(app, host='0.0.0.0', port=8080)
|
||||
else:
|
||||
app.run(host='0.0.0.0', port=8080, debug=True)
|
||||
Reference in New Issue
Block a user