Skip to content

Dockerfile for AutoGen Studio fails to build due to UID conflict #5929

Closed
@gunt3001

Description

@gunt3001

What happened?

Describe the bug

The Dockerfile for Autogen Studio at python/packages/autogen-studio/Dockerfile fails to build.

The issue occurs at the step that adds a user with UID 1000 (RUN useradd -m -u 1000 user). Since the base image (mcr.microsoft.com/devcontainers/python:3.10) is a Dev Container, it already includes a user with UID 1000.

This causes the build to fail with error code 4 - UID already in use.

To Reproduce

  1. Download the Dockerfile from python/packages/autogen-studio/Dockerfile into a local directory.
  2. Build the Docker image with docker build .
  3. Observe error
ERROR: failed to solve: process "/bin/sh -c useradd -m -u 1000 user" did not complete successfully: exit code: 4

Expected behavior

The Docker image should build successfully without errors.

Screenshots

N/A

Additional context

This issue is observed on the current main branch. I'm also not sure if this would be resolved as part of the ongoing effort to rewrite AutoGen Studio to AutoGen 0.4 API (#4006)

Which packages was the bug in?

AutoGen Studio (autogensudio)

AutoGen library version.

Studio 0.4.1

Other library version.

No response

Model used

No response

Model provider

None

Other model provider

No response

Python version

3.10

.NET version

None

Operating system

None

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions