mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
16 lines
663 B
Plaintext
16 lines
663 B
Plaintext
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0.0-preview6-buster-slim-arm32v7 AS base
|
|
WORKDIR /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview6-buster AS build
|
|
WORKDIR /src
|
|
COPY ["Weather/SerialReader/SerialReader.csproj", "Weather/SerialReader/"]
|
|
COPY ["Weather/Models/Models.csproj", "Weather/Models/"]
|
|
RUN dotnet restore -r linux-arm "Weather/SerialReader/SerialReader.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/Weather/SerialReader"
|
|
RUN dotnet publish -r linux-arm --self-contained=false "SerialReader.csproj" -c Release -o /app
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Weather.SerialReader.dll"] |