From 9edf69b2dba6cf50cb862390367046225899d76a Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sun, 21 Jul 2019 10:30:40 -0400 Subject: [PATCH] Weather service changes --- Dockerfile-WeatherService => Weather/Service/Dockerfile | 7 +++---- Weather/Service/Service.csproj | 7 ++----- 2 files changed, 5 insertions(+), 9 deletions(-) rename Dockerfile-WeatherService => Weather/Service/Dockerfile (62%) diff --git a/Dockerfile-WeatherService b/Weather/Service/Dockerfile similarity index 62% rename from Dockerfile-WeatherService rename to Weather/Service/Dockerfile index 5052d25..583167e 100644 --- a/Dockerfile-WeatherService +++ b/Weather/Service/Dockerfile @@ -4,11 +4,10 @@ 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 ["./Service.csproj", "./"] +RUN dotnet restore "Service.csproj" COPY . . -WORKDIR "/src/Weather/Service" +WORKDIR "/src" RUN dotnet publish "Service.csproj" -c Release -o /app FROM base AS final diff --git a/Weather/Service/Service.csproj b/Weather/Service/Service.csproj index df04f28..5a089be 100644 --- a/Weather/Service/Service.csproj +++ b/Weather/Service/Service.csproj @@ -19,15 +19,12 @@ + - + - - - -