Skip to content

Conversation

@MaxFedotov
Copy link
Contributor

fixes #1067

@gyuho
Copy link
Member

gyuho commented Sep 8, 2025

We will take a look!

/cc @pteranodan

@gyuho gyuho self-assigned this Sep 8, 2025
@gyuho gyuho added this to the v0.8.0 milestone Sep 9, 2025
Comment on lines +19 to +26
COPY api/ api/
COPY client/ client/
COPY cmd/ cmd/
COPY components/ components/
COPY docs/ docs/
COPY pkg/ pkg/
COPY version/ version/
COPY Makefile Makefile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on simplifying this to a single COPY . . command and managing exclusions in a .dockerignore file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that worries me with adding them to .dockerignore is that we are abstracting some build details from the Dockerfile and that can make troubleshooting a bit harder. It is much easier when everything is in the single file, even if this makes it a bit bigger

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. The main reason I suggested the COPY . . command together with a .dockerignore file, is that this pattern is recommended by Docker. It avoids having to update the Dockerfile when new directories are added, it prevents sensitive or unnecessary files from ever being sent to the Docker daemon (keeping the build context small and is a crucial security best practice), and makes exclusions explicit.

/cc @gyuho

@gyuho gyuho merged commit f7661b0 into leptonai:main Sep 10, 2025
1 check passed
@gyuho
Copy link
Member

gyuho commented Sep 10, 2025

@MaxFedotov Thanks for the contribution. We have many others that look to support GPUd in container mode. Please let us know how it goes, or feel free to email us at gyuhol@nvidia.com!

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.

Dockerfile and helm chart improvements

3 participants