Open Closed

Need sample for Dockerfile #2855


User avatar
0
tech-admin@on.app created

We build our solution using ABP Commercial/ Application Template with IdentityServer is separated, Frontend is Angular. Now we want to deploy the solutions to Docker/K8s/Container. We are looking for the sample of how to package and deploy them in Docker/K8s/Container. Please share your sample and support.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Here is a sample Dockerfile that works for local image creation:

    Navigate to your application solution directory and run dotnet publish -c Release

    FROM mcr.microsoft.com/dotnet/aspnet:6.0
    COPY bin/Release/net6.0/publish/ app/
    WORKDIR /app
    ENTRYPOINT ["dotnet", "MyApplication.dll"]
    

    To build the image, run docker build -t mycompany/myimage:$version .

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.