Remove entrypoint Git auto-config (git creds passed via env at runtime)
This commit is contained in:
parent
f80a8ca8ef
commit
113d15c0dd
1 changed files with 0 additions and 18 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue