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

add docker build instructions, multistage build #74

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

Hammer2900
Copy link

No description provided.

README.md Outdated
@@ -53,6 +53,26 @@ uv pip install ai-vocabulary-builder
# uvx --from ai-vocabulary-builder aivoc notebook
```

[docker](https://hub.docker.com/_/python)
Copy link
Owner

Choose a reason for hiding this comment

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

It would be nice if you put this section in a separate CONTRIBUTING.md file, because only developers will need to build the image themselves. For users, I will upload the image to the docker hub and the README will only mention it via docker run ....

Dockerfile Outdated
COPY --from=builder /app/voc_builder ./voc_builder
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
EXPOSE 10000
CMD ["python", "-m", "voc_builder.main", "notebook", "--host", "0.0.0.0", "--port", "10000"]
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer the image to use the default port 16093; How about an example about customizing the host and port, it would be a common practice.

@piglei piglei merged commit 9847a6a into piglei:main Jan 6, 2025
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.

2 participants