File tree 4 files changed +38
-21
lines changed
4 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
2
- WORKDIR /src
3
- COPY . .
4
- RUN dotnet tool install -g Volo.Abp.Cli
5
- ENV PATH="${PATH}:/root/.dotnet/tools"
6
- WORKDIR /src/CmsKitDemo
7
- RUN abp install-libs
8
- RUN dotnet publish -c Release -o bin/Release/publish
9
-
10
- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final
1
+ FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
11
2
RUN apt-get update && apt-get install -y libgdiplus
12
- WORKDIR /app/sqliteDb
13
- COPY --from=base /src/CmsKitDemo.db .
14
- RUN chmod 666 CmsKitDemo.db
15
3
WORKDIR /app
16
4
EXPOSE 80
17
- COPY --from=base /src/ CmsKitDemo/bin/Release/publish .
18
- ENV App__ConnectionStrings__Default= "Data Source=/app/sqliteDb/ CmsKitDemo.db;Version=3;"
19
- ENTRYPOINT ["dotnet" , "CmsKitDemo.dll" ]
5
+ COPY CmsKitDemo/bin/Release/publish .
6
+ COPY CmsKitDemo.db .
7
+ ENTRYPOINT ["dotnet" , "CmsKitDemo.dll" ]
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
2
+ WORKDIR /src
3
+ COPY . .
4
+ RUN dotnet tool install -g Volo.Abp.Cli
5
+ ENV PATH="${PATH}:/root/.dotnet/tools"
6
+ WORKDIR /src/CmsKitDemo
7
+ RUN abp install-libs
8
+ RUN dotnet publish -c Release -o bin/Release/publish
9
+
10
+ FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final
11
+ RUN apt-get update && apt-get install -y libgdiplus
12
+ WORKDIR /app/sqliteDb
13
+ COPY --from=base /src/CmsKitDemo.db .
14
+ RUN chmod 666 CmsKitDemo.db
15
+ WORKDIR /app
16
+ EXPOSE 80
17
+ COPY --from=base /src/CmsKitDemo/bin/Release/publish .
18
+ ENV App__ConnectionStrings__Default="Data Source=/app/sqliteDb/CmsKitDemo.db;Version=3;"
19
+ ENTRYPOINT ["dotnet", "CmsKitDemo.dll"]
Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
1
+ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
2
+ WORKDIR /src
3
+ COPY . .
4
+ RUN dotnet tool install -g Volo.Abp.Cli
5
+ ENV PATH="${PATH}:/root/.dotnet/tools"
6
+ WORKDIR /src/CmsKitDemo
7
+ RUN abp install-libs
8
+ RUN dotnet publish -c Release -o bin/Release/publish
9
+
10
+ FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final
2
11
RUN apt-get update && apt-get install -y libgdiplus
3
12
WORKDIR /app
13
+ COPY --from=base /src/CmsKitDemo.db .
14
+ WORKDIR /app
4
15
EXPOSE 80
5
- COPY CmsKitDemo/bin/Release/publish .
6
- COPY CmsKitDemo.db .
7
- ENTRYPOINT ["dotnet", "CmsKitDemo.dll"]
16
+ COPY --from=base /src/CmsKitDemo/bin/Release/publish .
17
+ ENTRYPOINT ["dotnet", "CmsKitDemo.dll"]
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ stages:
42
42
containerRegistry : $(dockerRegistryServiceConnection)
43
43
repository : ' demo/cms-kit-demo.abp.io'
44
44
command : ' build'
45
- Dockerfile : ' $(solutionDir)/Dockerfile'
45
+ Dockerfile : ' $(solutionDir)/Dockerfile.azure '
46
46
tags : |
47
47
$(tag)
48
48
You can’t perform that action at this time.
0 commit comments