-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20279 from abpframework/boostrap-update
Created docker file for azure devops
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
modules/basic-theme/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/Dockerfile.azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:16 AS nodebase | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
|
||
COPY --from=nodebase /usr/local/bin /usr/local/bin | ||
COPY --from=nodebase /usr/local/lib /usr/local/lib | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN dotnet tool update --global Volo.Abp.Cli | ||
ENV PATH="${PATH}:/root/.dotnet/tools/" | ||
WORKDIR /app/abp/modules/basic-theme/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo | ||
RUN abp install-libs | ||
RUN dotnet publish -c Release -o bin/Release/publish | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 | ||
WORKDIR /app | ||
EXPOSE 80 | ||
ENV ASPNETCORE_URLS=http://+:80 | ||
COPY --from=build /app/abp/modules/basic-theme/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/bin/Release/publish . | ||
ENTRYPOINT ["dotnet", "Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters