提交 0461206b 编写于 作者: 麦壳饼's avatar 麦壳饼

优化docker文件

上级 d29b05d1
......@@ -57,11 +57,11 @@ COPY ["IoTSharp.TaskActions/IoTSharp.TaskActions.csproj", "IoTSharp.TaskActions/
RUN dotnet restore "IoTSharp/IoTSharp.csproj"
COPY . .
WORKDIR "/src/IoTSharp"
RUN dotnet build "IoTSharp.csproj" -c Release -o /app/build
RUN dotnet build "IoTSharp.csproj" --no-restore -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "IoTSharp.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "IoTSharp.csproj" --no-build --no-restore -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册