Update hub service

This commit is contained in:
2019-07-21 11:03:10 -04:00
parent 1bdb33400e
commit 5fd7bd21a4
7 changed files with 12 additions and 22 deletions

16
Hub/Service/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM microsoft/dotnet:2.2-aspnetcore-runtime-stretch-slim AS base
WORKDIR /app
EXPOSE 80
FROM microsoft/dotnet:2.2-sdk-stretch AS build
WORKDIR /src
COPY ["./Service.csproj", "./"]
RUN dotnet restore "Service.csproj"
COPY . .
WORKDIR "/src"
RUN dotnet publish "Service.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Hub.Service.dll"]