mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Some cleanup and update to release images
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user