Some cleanup and update to release images

This commit is contained in:
2019-10-13 09:33:06 -04:00
parent 082c188014
commit 1f6473dbbd
4 changed files with 6 additions and 5 deletions

View File

@@ -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 WORKDIR /app
EXPOSE 80 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 WORKDIR /src
COPY ["./Service.csproj", "./"] COPY ["./Service.csproj", "./"]
RUN dotnet restore "Service.csproj" RUN dotnet restore "Service.csproj"

View File

@@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models namespace ChrisKaczor.HomeMonitor.Power.Service.Models
{ {
[UsedImplicitly] [PublicAPI]
public class PowerChannel public class PowerChannel
{ {
[JsonPropertyName("type")] [JsonPropertyName("type")]

View File

@@ -1,9 +1,11 @@
using System; using JetBrains.Annotations;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models namespace ChrisKaczor.HomeMonitor.Power.Service.Models
{ {
[PublicAPI]
public class PowerSample public class PowerSample
{ {
[JsonPropertyName("sensorId")] [JsonPropertyName("sensorId")]

View File

@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<AssemblyName>ChrisKaczor.HomeMonitor.Power.Service</AssemblyName> <AssemblyName>ChrisKaczor.HomeMonitor.Power.Service</AssemblyName>