-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base | ||
WORKDIR /src | ||
COPY . . | ||
RUN dotnet tool install -g Volo.Abp.Cli | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
WORKDIR /src/CmsKitDemo | ||
RUN abp install-libs | ||
RUN dotnet publish -c Release -o bin/Release/publish | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base | ||
RUN apt-get update && apt-get install -y libgdiplus | ||
WORKDIR /app/sqliteDb | ||
COPY --from=base /src/CmsKitDemo.db . | ||
RUN chmod 666 CmsKitDemo.db | ||
WORKDIR /app | ||
EXPOSE 80 | ||
COPY --from=base /src/CmsKitDemo/bin/Release/publish . | ||
ENV App__ConnectionStrings__Default="Data Source=/app/sqliteDb/CmsKitDemo.db;Version=3;" | ||
ENTRYPOINT ["dotnet", "CmsKitDemo.dll"] | ||
COPY CmsKitDemo/bin/Release/publish . | ||
COPY CmsKitDemo.db . | ||
ENTRYPOINT ["dotnet", "CmsKitDemo.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base | ||
WORKDIR /src | ||
COPY . . | ||
RUN dotnet tool install -g Volo.Abp.Cli | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
WORKDIR /src/CmsKitDemo | ||
RUN abp install-libs | ||
RUN dotnet publish -c Release -o bin/Release/publish | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final | ||
RUN apt-get update && apt-get install -y libgdiplus | ||
WORKDIR /app/sqliteDb | ||
COPY --from=base /src/CmsKitDemo.db . | ||
RUN chmod 666 CmsKitDemo.db | ||
WORKDIR /app | ||
EXPOSE 80 | ||
COPY --from=base /src/CmsKitDemo/bin/Release/publish . | ||
ENV App__ConnectionStrings__Default="Data Source=/app/sqliteDb/CmsKitDemo.db;Version=3;" | ||
ENTRYPOINT ["dotnet", "CmsKitDemo.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base | ||
WORKDIR /src | ||
COPY . . | ||
RUN dotnet tool install -g Volo.Abp.Cli | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
WORKDIR /src/CmsKitDemo | ||
RUN abp install-libs | ||
RUN dotnet publish -c Release -o bin/Release/publish | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final | ||
RUN apt-get update && apt-get install -y libgdiplus | ||
WORKDIR /app | ||
COPY --from=base /src/CmsKitDemo.db . | ||
WORKDIR /app | ||
EXPOSE 80 | ||
COPY CmsKitDemo/bin/Release/publish . | ||
COPY CmsKitDemo.db . | ||
ENTRYPOINT ["dotnet", "CmsKitDemo.dll"] | ||
COPY --from=base /src/CmsKitDemo/bin/Release/publish . | ||
ENTRYPOINT ["dotnet", "CmsKitDemo.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