Skip to content

Docker build fails because python:3.11-slim-buster is deprecated and openjdk-11-jdk cannot be installed. #1682

@milkfish033

Description

@milkfish033

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Docker build fails because python:3.11-slim-buster is deprecated and openjdk-11-jdk cannot be installed.

Current behaviour

error message: target platform: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y default-libmysqlclient-dev gcc pkg-config openjdk-11-jdk build-essential && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Steps to reproduce

execute ./setup.sh
select Docker method

Possible solution

Changed:

FROM python:3.11-slim-buster as prod

To:

FROM python:3.11-slim-bookworm as prod

Replaced unavailable Java 11 with Java 17

Updated the install block:

RUN apt-get update && apt-get install -y
default-libmysqlclient-dev
gcc
pkg-config
openjdk-17-jdk
build-essential
&& rm -rf /var/lib/apt/lists/*

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of AgentGPT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions