- ABP Framework version: v5.3.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:" I am trying to run the application in debug mode with Linux Docker Container, getting this License check error. I tried with the solution given in https://support.abp.io/QA/Questions/69/ but no luck. Below is my docker file
`#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app
ENV ASPNETCORE_ENVIRONMENT Production
EXPOSE 80 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["NuGet.Config", "."] COPY ["AkadimiWF/AkadimiWF.csproj", "AkadimiWF/"]
RUN dotnet tool install --global Volo.Abp.Cli ENV PATH /root/.dotnet/tools:$PATH RUN echo $PATH RUN abp login ******** -p ********
RUN dotnet restore "AkadimiWF/AkadimiWF.csproj" COPY . . WORKDIR "/src/AkadimiWF" RUN dotnet build "AkadimiWF.csproj" -c Release -o /app/build
FROM build AS publish RUN dotnet publish "AkadimiWF.csproj" -c Release -o /app/publish
FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "AkadimiWF.dll"]`
3 Answer(s)
-
0
In the
Production
environment of ABP templates, the default log level isInformation
, so the logs at theDebug
level are not visible, but there is a log at theDebug
level in the log you sent. As a result, it seems to me that somehow your application is running inDevelopment
mode. But just to be sure, can you tell me your log level inProduction
mode?Also, after you
logout
withabp cli
in your local, do you have a chance to publish and run the application with Production mode? Thus, we understand that the problem is not related to base images or not.