Skip to content

Commit

Permalink
Merge pull request #20279 from abpframework/boostrap-update
Browse files Browse the repository at this point in the history
Created docker file for azure devops
  • Loading branch information
salihozkara authored Jul 25, 2024
2 parents c4729e8 + 16b50ca commit 2853f8b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
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"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variables:
DOCKER_BUILDKIT: 1

pool:
vmImage: 'ubuntu-latest'
name: aks-deployer-agent


stages:
Expand All @@ -31,21 +31,21 @@ stages:
- job: Build
displayName: Package Helm Charts and Values
pool:
vmImage: 'ubuntu-latest'
name: aks-deployer-agent
steps:
- checkout: self
- checkout: devops

- script: |
cd $(bootstrapTaghelpersDir) && dotnet publish -c Release -o bin/Release/publish
# - script: |
# cd $(bootstrapTaghelpersDir) && dotnet publish -c Release -o bin/Release/publish

- task: Docker@2
displayName: Build Image
inputs:
command: build
repository: demo/bootstrap-taghelpers
dockerfile: $(bootstrapTaghelpersDir)/Dockerfile
buildContext: $(bootstrapTaghelpersDir)
dockerfile: $(bootstrapTaghelpersDir)/Dockerfile.azure
buildContext: $(workDir)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
Expand Down

0 comments on commit 2853f8b

Please sign in to comment.