MarkdownSnippets
MarkdownSnippets copied to clipboard
Add way to run via docker
sometimes .net is blocked by company policy.
a docker file:
FROM bitnami/dotnet-sdk:latest
RUN dotnet tool install -g MarkdownSnippets.Tool
ENV PATH="$PATH:/app/.dotnet/tools"
WORKDIR /app/repo
ENTRYPOINT ["/bin/bash"]
But to use it with your files, requires a mounting via a volume. so a shell script is also helpful
docker build . -t markdown_snippets
docker run -it --entrypoint sh -v <path-to-repo>:/app/repo markdown_snippets
I want to insert at the line 0 of the Dockerfile
something like:
# While we'd prefer to use the official .Net docker image, it lacks Bash.
# FROM microsoft/dotnet-sdk:latest
Does /bin/sh
work on the MS-supplied Docker image?
want to submit a PR to the docs?