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