Skip to content

Fix Dockerfile entrypoint to use Binary instead of Name#435

Open
buger wants to merge 1 commit intomasterfrom
fix/dockerfile-entrypoint-binary
Open

Fix Dockerfile entrypoint to use Binary instead of Name#435
buger wants to merge 1 commit intomasterfrom
fix/dockerfile-entrypoint-binary

Conversation

@buger
Copy link
Copy Markdown
Member

@buger buger commented Feb 3, 2026

Summary

  • Fixes the Dockerfile.std template to use .Binary instead of .Name for the entrypoint
  • This resolves an issue where the Docker container was using the wrong binary path for ai-studio

Problem

The Dockerfile.std template was generating incorrect entrypoints for repositories where the binary name differs from the repo name. For example, ai-studio:

  • Name = ai-studio
  • Binary = tyk-ai-studio
  • PackageName = tyk-ai-studio

The entrypoint was incorrectly set to /opt/tyk-ai-studio/ai-studio instead of /opt/tyk-ai-studio/tyk-ai-studio.

Solution

Changed the template to use {{ .Binary }} instead of {{ .Name }} for the entrypoint path.

Test plan

  • Verified gromit builds successfully
  • Verified ai-studio generates correct Dockerfile with ENTRYPOINT ["/opt/tyk-ai-studio/tyk-ai-studio" ]
  • Verified tyk generates correct Dockerfile with ENTRYPOINT ["/opt/tyk-gateway/tyk" ]
  • Verified tyk-pump generates correct Dockerfile with ENTRYPOINT ["/opt/tyk-pump/tyk-pump" ]
  • Verified tyk-analytics generates correct Dockerfile with ENTRYPOINT ["/opt/tyk-dashboard/tyk-analytics" ]

🤖 Generated with Claude Code

The Dockerfile.std template was using `.Name` (repo name) for the
entrypoint, but should use `.Binary` (the actual binary name).

This caused issues for ai-studio where:
- Name = ai-studio
- Binary = tyk-ai-studio
- PackageName = tyk-ai-studio

The entrypoint was incorrectly set to /opt/tyk-ai-studio/ai-studio
instead of /opt/tyk-ai-studio/tyk-ai-studio.

This fix ensures the Docker container uses the correct binary path for
all repositories.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@buger buger requested a review from a team as a code owner February 3, 2026 20:30
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