mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Build updates
This commit is contained in:
15
Weather/SerialReader/Dockerfile
Normal file
15
Weather/SerialReader/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
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 ["./SerialReader.csproj", "./"]
|
||||
RUN dotnet restore -r linux-arm "SerialReader.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/"
|
||||
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"]
|
||||
Reference in New Issue
Block a user