From 204a6f207e5fa0e56f0657eae8e2f29fca55a46f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 27 May 2019 16:28:14 +0800 Subject: [PATCH] doc(Docker): update docker file #Comment Add copy db/lic file --- Bootstrap.Admin/Dockerfile | 2 ++ Bootstrap.Admin/Dockerfile.linux | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Bootstrap.Admin/Dockerfile b/Bootstrap.Admin/Dockerfile index 0043ca66..04979df9 100644 --- a/Bootstrap.Admin/Dockerfile +++ b/Bootstrap.Admin/Dockerfile @@ -20,4 +20,6 @@ RUN dotnet publish "Bootstrap.Admin.csproj" -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . +COPY --from=build ["/src/Bootstrap.Admin/BootstrapAdmin.db", "./BootstrapAdmin.db"] +COPY --from=build ["/src/Scripts/Longbow.lic", "./Longbow.lic"] ENTRYPOINT ["dotnet", "Bootstrap.Admin.dll"] \ No newline at end of file diff --git a/Bootstrap.Admin/Dockerfile.linux b/Bootstrap.Admin/Dockerfile.linux index c94e7d6b..fb495a9d 100644 --- a/Bootstrap.Admin/Dockerfile.linux +++ b/Bootstrap.Admin/Dockerfile.linux @@ -17,4 +17,6 @@ RUN dotnet publish "Bootstrap.Admin.csproj" -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . +COPY --from=build ["/src/Bootstrap.Admin/BootstrapAdmin.db", "./BootstrapAdmin.db"] +COPY --from=build ["/src/Scripts/Longbow.lic", "./Longbow.lic"] ENTRYPOINT ["dotnet", "Bootstrap.Admin.dll"] \ No newline at end of file