Skip to content
This is a example of dotnet core 2.2 in a Docker container using DinkToPdf Library
C# Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode feat: added init files Apr 15, 2019
PdfDemo feat: added init files Apr 15, 2019
lib feat: added init files Apr 15, 2019
.DS_Store feat: added init files Apr 15, 2019
.gitignore Initial commit Apr 15, 2019
Dockerfile
LICENSE
PdfDemoSolution.sln
README.md

README.md

DinkToPdf dotnet core Docker

This is a example of dotnet core 2.2 in a Docker container using DinkToPdf Library

This is by no means the best project layout or use of object and resources but is intented to showcase the idea of using the library DinkToPdf and how to run it in a Docker container.

Developement

  1. Clone repo.
  2. dotnet restore restore
  3. dotnet build
  4. dotnet run

Docker

docker build -t pdfdemo:1 .

Then after built and tagged.

docker run -p 89:80 pdfdemo:1

Then open a browser and navigate to http://localhost:89/api/values

and the generated file will be downloaded.

You can’t perform that action at this time.