gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Upgrade Docker setup to Python 3.13

Open Thejas1906 opened this issue 1 month ago • 0 comments

Description

This PR updates the Docker environment for GPT Engineer to use Python 3.13, enabling compatibility with the latest Python version.

Changes include

  • Updated base images in the Dockerfile from python:3.11-slimpython:3.13-slim.
  • Adjusted Python library paths to match Python 3.13.
  • Ensured all dependencies (openai>=1.0.0, backoff) remain installed and functional.
  • Maintained existing multi-stage Docker setup and entrypoint configuration.

Motivation

  • Support Python 3.13 for users who run GPT Engineer on the latest Python versions.
  • Showcase GPT Engineer on YouTube using Python 3.13.

Impact

  • No functional changes to the application.
  • Existing projects and workflow remain compatible.

[!IMPORTANT] Upgrade Docker setup to Python 3.13, updating base images, paths, and error handling.

  • Docker Setup:
    • Update Dockerfile to use python:3.13-slim for both builder and final stages.
    • Adjust Python library paths to /usr/local/lib/python3.13/site-packages.
    • Ensure dependencies openai>=1.0.0 and backoff are installed.
  • docker-compose:
    • Update docker-compose.yml to version 3.9.
  • Entrypoint Script:
    • Add set -e in entrypoint.sh for immediate exit on errors.
    • Adjust file permissions handling in entrypoint.sh.

This description was created by Ellipsis for fc57ee1a18ed4ecc9255db2ddc044e4598ffd406. You can customize this summary. It will automatically update as commits are pushed.

Thejas1906 avatar Oct 09 '25 21:10 Thejas1906