mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Initial commit from private
This commit is contained in:
17
Dockerfile-WeatherService
Normal file
17
Dockerfile-WeatherService
Normal 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"]
|
||||
Reference in New Issue
Block a user