MarkdownSnippets icon indicating copy to clipboard operation
MarkdownSnippets copied to clipboard

Add way to run via docker

Open isidore opened this issue 1 year ago • 3 comments

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

isidore avatar Aug 16 '23 13:08 isidore

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

JayBazuzi avatar Aug 16 '23 18:08 JayBazuzi

Does /bin/sh work on the MS-supplied Docker image?

JayBazuzi avatar Aug 16 '23 22:08 JayBazuzi

want to submit a PR to the docs?

SimonCropp avatar Aug 19 '23 09:08 SimonCropp