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 way to run via docker #630

Open
isidore opened this issue Aug 16, 2023 · 3 comments
Open

Add way to run via docker #630

isidore opened this issue Aug 16, 2023 · 3 comments

Comments

@isidore
Copy link

isidore commented Aug 16, 2023

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
@JayBazuzi
Copy link
Contributor

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
Copy link
Contributor

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

@SimonCropp
Copy link
Owner

want to submit a PR to the docs?

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

No branches or pull requests

3 participants