1 Star 0 Fork 243

SesameTechGroup / IoTSharp

forked from dotNET China / IoTSharp 
加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 809 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
麦壳饼 提交于 2019-11-07 16:51 . add docker file
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
COPY ["IoTSharp/IoTSharp.csproj", "IoTSharp/"]
COPY ["IoTSharp.Extensions/IoTSharp.Extensions.csproj", "IoTSharp.Extensions/"]
COPY ["IoTSharp.Releases/IoTSharp.Releases.csproj", "IoTSharp.Releases/"]
COPY ["IoTSharp.Extensions.AspNetCore/IoTSharp.Extensions.AspNetCore.csproj", "IoTSharp.Extensions.AspNetCore/"]
RUN dotnet restore "IoTSharp/IoTSharp.csproj"
COPY . .
WORKDIR "/src/IoTSharp"
RUN dotnet build "IoTSharp.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "IoTSharp.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "IoTSharp.dll"]

评论 ( 0 )

你可以在登录后,发表评论

C#
1
https://gitee.com/sesametechgroup/IoTSharp.git
git@gitee.com:sesametechgroup/IoTSharp.git
sesametechgroup
IoTSharp
IoTSharp
master

搜索帮助