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.


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 .

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11