#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/runtime:3.1 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
WORKDIR /src
COPY [“WorkerWeather/WorkerWeather.csproj”, “WorkerWeather/”]
RUN dotnet restore “WorkerWeather/WorkerWeather.csproj”
COPY . .
WORKDIR “/src/WorkerWeather”
RUN dotnet build “WorkerWeather.csproj” -c Release -o /app/build
FROM build AS publish
RUN dotnet publish “WorkerWeather.csproj” -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT [“dotnet”, “WorkerWeather.dll”]