17
umbraco-cms/app/umbracocms/Dockerfile
Normal file
17
umbraco-cms/app/umbracocms/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as base
|
||||
WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
RUN ls
|
||||
RUN dotnet build "umbracocms.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "umbracocms.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "umbracocms.dll"]
|
Reference in New Issue
Block a user