From 3d60f45d3633f4436fbd2ee37da618fd9381f787 Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Sat, 26 Apr 2025 21:08:42 +0000 Subject: [PATCH] Update Python version from 3.11.11 to 3.12 --- JIT | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 JIT diff --git a/JIT b/JIT new file mode 100644 index 0000000..e666e78 --- /dev/null +++ b/JIT @@ -0,0 +1,32 @@ +FROM python:3.12-slim + +WORKDIR /app + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + libssl-dev \ + libffi-dev \ + python3-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Copy application code first (including requirements.txt) +COPY . . + +# Install dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Set environment variables +ENV PYTHONUNBUFFERED=1 +ENV FLASK_APP=app.py +ENV PYTHONDONTWRITEBYTECODE=1 + +# Use the PORT environment variable provided by Render +ENV PORT=10000 + +# Expose port +EXPOSE ${PORT} + +# Run the application with Gunicorn +CMD gunicorn --bind 0.0.0.0:${PORT} --workers 4 --timeout 120 --access-logfile - --error-logfile - app:app Backend/Dockerfile