mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-08 01:28:27 -05:00
Build updates
This commit is contained in:
@@ -3,11 +3,10 @@ WORKDIR /app
|
|||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview6-buster AS build
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview6-buster AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["Weather/SerialReader/SerialReader.csproj", "Weather/SerialReader/"]
|
COPY ["./SerialReader.csproj", "./"]
|
||||||
COPY ["Weather/Models/Models.csproj", "Weather/Models/"]
|
RUN dotnet restore -r linux-arm "SerialReader.csproj"
|
||||||
RUN dotnet restore -r linux-arm "Weather/SerialReader/SerialReader.csproj"
|
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/Weather/SerialReader"
|
WORKDIR "/src/"
|
||||||
RUN dotnet publish -r linux-arm --self-contained=false "SerialReader.csproj" -c Release -o /app
|
RUN dotnet publish -r linux-arm --self-contained=false "SerialReader.csproj" -c Release -o /app
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="ChrisKaczor.HomeMonitor.Weather.Models" Version="1.0.6" />
|
||||||
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
|
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0-preview6.19304.6" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0-preview6.19304.6" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.0.0-preview6.19304.6" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.0.0-preview6.19304.6" />
|
||||||
@@ -20,8 +21,4 @@
|
|||||||
<PackageReference Include="System.IO.Ports" Version="4.6.0-preview5.19224.8" />
|
<PackageReference Include="System.IO.Ports" Version="4.6.0-preview5.19224.8" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Models\Models.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user