Skip to content

Commit

Permalink
Added arm32 Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Aug 16, 2018
1 parent 909863d commit f872b6b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Dockerfile.arm32
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM microsoft/dotnet:2.1-sdk-alpine AS build
WORKDIR /app

# copy csproj and restore as distinct layers
COPY nuget.config .
COPY *.sln .
COPY HomeAutio.Mqtt.TiVo/*.csproj ./HomeAutio.Mqtt.TiVo/
RUN dotnet restore

# copy and build everything else
COPY HomeAutio.Mqtt.TiVo/. ./HomeAutio.Mqtt.TiVo/
RUN dotnet build -c Release

# publish
FROM build AS publish
WORKDIR /app/HomeAutio.Mqtt.TiVo
RUN dotnet publish -o out

# build runtime image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-stretch-slim-arm32v7 AS runtime
WORKDIR /app
COPY --from=publish /app/HomeAutio.Mqtt.TiVo/out ./

ENV ENVIRONMENT Production

VOLUME ["/app/appsettings.Production.json", "/app/logs"]
ENTRYPOINT ["dotnet", "HomeAutio.Mqtt.TiVo.dll"]

0 comments on commit f872b6b

Please sign in to comment.