Skip to content

Commit

Permalink
zkeasoft/cms-runtime:5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Jan 21, 2021
1 parent c6854e5 commit 55b9e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ RUN sqlite-exec -d /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput/Database
RUN cp -f /build/Database/SQLite/appsettings.json /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput/appsettings.json

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:5.0
FROM zkeasoft/cms-runtime:5.0
WORKDIR /zkeacms
COPY --from=builder /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput .
RUN apt update -y
RUN apt install libicu-dev libgdiplus -y
EXPOSE 80
RUN echo "cp -n Database.sqlite App_Data/Database.sqlite" > run.sh
RUN echo "dotnet ZKEACMS.WebHost.dll" >> run.sh
Expand Down
4 changes: 1 addition & 3 deletions src/ZKEACMS.WebHost/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM mcr.microsoft.com/dotnet/aspnet:5.0
FROM zkeasoft/cms-runtime:5.0
ARG source
WORKDIR /zkeacms
EXPOSE 80
COPY ${source:-bin/Release/PublishOutput} .
RUN apt update -y
RUN apt install libicu-dev libgdiplus -y
ENTRYPOINT ["dotnet", "ZKEACMS.WebHost.dll"]

0 comments on commit 55b9e3b

Please sign in to comment.