Initial commit from private

This commit is contained in:
2019-07-15 20:51:25 -04:00
commit 264f03a22f
55 changed files with 2006 additions and 0 deletions

17
Dockerfile-HubService Normal file
View File

@@ -0,0 +1,17 @@
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 ["Hub/Service/Service.csproj", "Hub/Service/"]
COPY ["Weather/Models/Models.csproj", "Weather/Models/"]
RUN dotnet restore "Hub/Service/Service.csproj"
COPY . .
WORKDIR "/src/Hub/Service"
RUN dotnet publish "Service.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "Hub.Service.dll"]