From 09db6a5aa6cfa0b9314b7b2aeae87aca36cff046 Mon Sep 17 00:00:00 2001 From: Tim Pietrusky Date: Wed, 14 Jan 2026 22:56:18 +0100 Subject: [PATCH] Modernize worker with Python 3.12 and latest dependencies - Upgrade from Python 3.10-slim to 3.12-slim for better performance - Use latest runpod package instead of pinned 1.7.7 - Rename rp_handler.py to handler.py for consistency - Remove asyncio from requirements (part of stdlib) Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 7 +++---- rp_handler.py => handler.py | 0 requirements.txt | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) rename rp_handler.py => handler.py (100%) diff --git a/Dockerfile b/Dockerfile index c670f4e..9d8693d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ -FROM python:3.10-slim +FROM python:3.12-slim WORKDIR / COPY requirements.txt /requirements.txt RUN pip install -r requirements.txt -COPY rp_handler.py / +COPY handler.py / -# Start the container -CMD ["python3", "-u", "rp_handler.py"] \ No newline at end of file +CMD ["python3", "-u", "handler.py"] diff --git a/rp_handler.py b/handler.py similarity index 100% rename from rp_handler.py rename to handler.py diff --git a/requirements.txt b/requirements.txt index 8944d66..54d89c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ -runpod==1.7.7 +runpod websocket-server -asyncio \ No newline at end of file