From abf6e8ce4f69e94275a3865db2b585d335f0d14c Mon Sep 17 00:00:00 2001 From: Drath Date: Thu, 23 Apr 2026 00:41:07 +0200 Subject: [PATCH] fuck waitress --- Dockerfile | 2 +- app/main.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ddb6c63..0a818a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/app/main.py b/app/main.py index 64c3621..ac2ae86 100644 --- a/app/main.py +++ b/app/main.py @@ -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) \ No newline at end of file + app.run(host='0.0.0.0', port=8080, debug=True) \ No newline at end of file