Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add non-interactive Docker build flags to prevent stuck prompts #2

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

AlexCuadron
Copy link
Owner

@AlexCuadron AlexCuadron commented Feb 17, 2025

This PR fixes the Docker build issue where it gets stuck on "Delete 1061 entries? (yes/no) [yes] Aborted" by modifying the Dockerfile template to prevent interactive prompts:

  1. Setting non-interactive environment variables in the Dockerfile:

    ENV DEBIAN_FRONTEND=noninteractive \
        DEBCONF_NONINTERACTIVE_SEEN=true
  2. Configuring debconf to use non-interactive frontend:

    echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  3. Adding force flags to cleanup commands:

    apt-get clean -y && \
    apt-get autoremove -y && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
    yes | /openhands/micromamba/bin/micromamba clean --all --force-pkgs-dirs

These changes ensure that Docker builds run without requiring manual intervention while maintaining the same functionality.

@AlexCuadron AlexCuadron marked this pull request as ready for review February 17, 2025 05:51
@AlexCuadron AlexCuadron merged commit 9179a8f into main Feb 17, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant