mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
17 lines
516 B
Plaintext
17 lines
516 B
Plaintext
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"] |