From 113d15c0ddf52b5b8f53d07e78f6ae9e5798b95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Carlos=20Machado=20de=20Paiva=20Ara=C3=BAjo?= Date: Sat, 3 Oct 2026 13:48:25 +0000 Subject: [PATCH] Remove entrypoint Git auto-config (git creds passed via env at runtime) --- Containerfile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Containerfile b/Containerfile index 7a10136..86f61cb 100644 --- a/Containerfile +++ b/Containerfile @@ -16,24 +16,6 @@ RUN curl -fsSL https://opencode.ai/install | bash # Prepara a pasta de trabalho (o script vai montar seus arquivos aqui) WORKDIR /workspace -# Script de entrypoint para configurar Git caso variáveis sejam fornecidas -RUN cat > /entrypoint.sh << 'SH' -#!/bin/sh -set -e - -if [ -n "$GIT_NAME" ]; then - git config --global user.name "$GIT_NAME" 2>/dev/null || true -fi - -if [ -n "$GIT_EMAIL" ]; then - git config --global user.email "$GIT_EMAIL" 2>/dev/null || true -fi - -exec "$@" -SH -RUN chmod +x /entrypoint.sh - # Define o comando padrão que vai rodar quando o container iniciar. # Se o nome do executável da sua ferramenta for 'opencode', use assim: -ENTRYPOINT ["/entrypoint.sh"] CMD ["/root/.opencode/bin/opencode"]