From 1f6473dbbdb38e6c0c6e0e9062c7ced2a0c10e15 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sun, 13 Oct 2019 09:33:06 -0400 Subject: [PATCH] Some cleanup and update to release images --- Power/Service/Dockerfile | 4 ++-- Power/Service/Models/PowerChannel.cs | 2 +- Power/Service/Models/PowerSample.cs | 4 +++- Power/Service/Service.csproj | 1 - 4 files changed, 6 insertions(+), 5 deletions(-) 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