4 Star 32 Fork 12

Cang/FreeIM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
sqh 提交于 2019-08-05 13:47 . #添加Docker需要的配置及相关文件
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR /app
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY ["imServer/imServer.csproj", "imServer/"]
COPY ["ImCore/ImCore.csproj", "ImCore/"]
RUN dotnet restore "imServer/imServer.csproj"
COPY . .
WORKDIR "/src/imServer"
RUN dotnet build "imServer.csproj" -c Release -o /app
FROM build AS publish
RUN dotnet publish "imServer.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "imServer.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cang12138/FreeIM.git
git@gitee.com:cang12138/FreeIM.git
cang12138
FreeIM
FreeIM
master

搜索帮助