diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 200369f..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,27 +0,0 @@
-# Use a slim Python image
-FROM python:3.11-slim
-
-# Environment: no .pyc files, real-time logs
-ENV PYTHONDONTWRITEBYTECODE=1
-ENV PYTHONUNBUFFERED=1
-
-# Create working directory
-WORKDIR /app
-
-# Install system dependencies
-RUN apt-get update && apt-get install -y --no-install-recommends \
- build-essential \
- && rm -rf /var/lib/apt/lists/*
-
-# Install Python dependencies
-COPY requirements.txt .
-RUN pip install --upgrade pip && pip install -r requirements.txt
-
-# Copy app code
-COPY . .
-
-# Expose Flask port
-EXPOSE 5000
-
-# Launch Gunicorn with 4 workers (adjust for your CPU cores)
-CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "4"]
\ No newline at end of file
diff --git a/app.py b/app.py
index 374d551..ce7da38 100644
--- a/app.py
+++ b/app.py
@@ -1,8 +1,21 @@
from flask import Flask
from routes import yeastar, voipms
import logging
+import os
+import shutil
import sys
+# Check for config.py at runtime
+if not os.path.exists("config.py"):
+ print("config.py not found — creating from config.template.py")
+ try:
+ shutil.copyfile("config.template.py", "config.py")
+ print("Created config.py — please edit it with your real secrets.")
+ sys.exit(1) # Exit so user must edit it manually
+ except Exception as e:
+ print(f"Failed to create config.py: {e}")
+ sys.exit(1)
+
# Disable Flask/Werkzeug noisy request log
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index 728d461..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-services:
- webhook-proxy:
- build: .
- container_name: webhook-proxy
- restart: unless-stopped
- ports:
- - "5000:5000"
\ No newline at end of file
diff --git a/webhook-proxy.pyproj b/webhook-proxy.pyproj
index 01a5bd5..4f18272 100644
--- a/webhook-proxy.pyproj
+++ b/webhook-proxy.pyproj
@@ -19,8 +19,6 @@
10.0
-
-