feat: add containerization support

- Add Containerfile with multi-stage build for minimal image
- Add .containerignore to exclude unnecessary files
- Add /health endpoint for container health checks
- Update main.py to expose Flask app for gunicorn

Uses Python 3.12-slim base, runs as non-root user, exposes port 8000.
This commit is contained in:
2025-12-22 13:10:47 -07:00
parent e8e30442d8
commit 6dbc84a04c
4 changed files with 116 additions and 4 deletions

14
main.py
View File

@@ -1,6 +1,14 @@
def main():
print("Hello from sneaky-klaus!")
"""Application entry point for Sneaky Klaus.
This module creates the Flask application instance for use with
gunicorn or the Flask development server.
"""
from src.app import create_app
# Create app instance for gunicorn (production)
app = create_app()
if __name__ == "__main__":
main()
# Development server
app.run(host="0.0.0.0", port=5000, debug=True)