diff --git a/Power/Service/Dockerfile b/Power/Service/Dockerfile index c068411..aec58ce 100644 --- a/Power/Service/Dockerfile +++ b/Power/Service/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/core/aspnet:3.0.0-preview7-buster-slim AS base +FROM mcr.microsoft.com/dotnet/core/aspnet:3.0.0-alpine AS base WORKDIR /app EXPOSE 80 -FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview7-buster AS build +FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-alpine AS build WORKDIR /src COPY ["./Service.csproj", "./"] RUN dotnet restore "Service.csproj" diff --git a/Power/Service/Models/PowerChannel.cs b/Power/Service/Models/PowerChannel.cs index cf57f68..f5670b0 100644 --- a/Power/Service/Models/PowerChannel.cs +++ b/Power/Service/Models/PowerChannel.cs @@ -3,7 +3,7 @@ using System.Text.Json.Serialization; namespace ChrisKaczor.HomeMonitor.Power.Service.Models { - [UsedImplicitly] + [PublicAPI] public class PowerChannel { [JsonPropertyName("type")] diff --git a/Power/Service/Models/PowerSample.cs b/Power/Service/Models/PowerSample.cs index c7e19b3..e3aac0e 100644 --- a/Power/Service/Models/PowerSample.cs +++ b/Power/Service/Models/PowerSample.cs @@ -1,9 +1,11 @@ -using System; +using JetBrains.Annotations; +using System; using System.Collections.Generic; using System.Text.Json.Serialization; namespace ChrisKaczor.HomeMonitor.Power.Service.Models { + [PublicAPI] public class PowerSample { [JsonPropertyName("sensorId")] diff --git a/Power/Service/Service.csproj b/Power/Service/Service.csproj index 189d5ce..c3abec8 100644 --- a/Power/Service/Service.csproj +++ b/Power/Service/Service.csproj @@ -1,7 +1,6 @@  - true netcoreapp3.0 InProcess ChrisKaczor.HomeMonitor.Power.Service