1 Star 0 Fork 111

zzgzzgok/ZKEACMS

forked from ZKEASOFT/ZKEACMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 981 Bytes
一键复制 编辑 原始数据 按行查看 历史
ZKEASOFT 提交于 2024-01-13 17:51 . Use monaco replace codemirror
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder
WORKDIR /build
# Copy all files
COPY . ./
RUN dotnet restore
ENV PATH="${PATH}:/root/.dotnet/tools"
RUN dotnet tool install --global ZKEACMS.Publisher
RUN dotnet tool install --global sqlite-exec
# Release ZKEACMS.WebHost
WORKDIR /build/src/ZKEACMS.WebHost
RUN publish-zkeacms
# Create database
RUN mkdir /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput/App_Data
RUN sqlite-exec -d /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput/Database.sqlite -f /build/Database/SQLite/ZKEACMS.sqlite.sql
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:8.0
WORKDIR /zkeacms
COPY --from=builder /build/src/ZKEACMS.WebHost/bin/Release/PublishOutput .
EXPOSE 8080
RUN echo "cp -n Database.sqlite App_Data/Database.sqlite" > run.sh
RUN echo "dotnet ZKEACMS.WebHost.dll" >> run.sh
ENTRYPOINT ["sh", "run.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/zzgzzgok/ZKEACMS.Core.git
git@gitee.com:zzgzzgok/ZKEACMS.Core.git
zzgzzgok
ZKEACMS.Core
ZKEACMS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385