mkdocs-multirepo-plugin icon indicating copy to clipboard operation
mkdocs-multirepo-plugin copied to clipboard

Git clone only for mkdocs build

Open makemakeespresso opened this issue 1 year ago • 3 comments

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

makemakeespresso avatar Jul 31 '24 12:07 makemakeespresso

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

jdoiro3 avatar Aug 01 '24 11:08 jdoiro3

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

makemakeespresso avatar Aug 01 '24 12:08 makemakeespresso

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.

cardoe avatar Aug 09 '24 21:08 cardoe