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

Git clone only for mkdocs build #155

Open
makemakeespresso opened this issue Jul 31, 2024 · 3 comments
Open

Git clone only for mkdocs build #155

makemakeespresso opened this issue Jul 31, 2024 · 3 comments
Labels
question Further information is requested

Comments

@makemakeespresso
Copy link

Hi,

i might miss something here, but is it possible to only perform the clone for "mkdocs build" and not for the serve command?
I want to build a docker image and want to avoid keeping the git credentials in the final docker image. Thanks

@jdoiro3
Copy link
Owner

jdoiro3 commented Aug 1, 2024

Why are you calling mkdocs serve when building the Docker image?

@makemakeespresso
Copy link
Author

Its the entrypoint of the image. Is that not the way to go?

@cardoe
Copy link
Contributor

cardoe commented Aug 9, 2024

serve is building and then hosting those files with live reload. If you're looking to just serve up the files then you should put them in a container that's running nginx for example.

@jdoiro3 jdoiro3 added the question Further information is requested label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants