From 7116655ae1151079c3b513449bd1772c86e42505 Mon Sep 17 00:00:00 2001 From: kugo12 Date: Sat, 4 Sep 2021 12:56:56 +0200 Subject: [PATCH] Add arm64v8 dockerfile --- arm64v8.dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 arm64v8.dockerfile diff --git a/arm64v8.dockerfile b/arm64v8.dockerfile new file mode 100755 index 0000000..1737789 --- /dev/null +++ b/arm64v8.dockerfile @@ -0,0 +1,18 @@ +FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster-arm64v8 AS build +WORKDIR /app + +# Separate layers here to avoid redoing dependencies on code change. +COPY *.sln . +COPY *.csproj . +RUN dotnet restore + +# Now the code. +COPY . . +RUN dotnet publish -r linux-musl-arm64 -c Release -o out + +FROM mcr.microsoft.com/dotnet/core/runtime-deps:3.1-alpine-arm64v8 AS runtime +WORKDIR /app +COPY --from=build /app/out . + +ENTRYPOINT ["./docker_exporter"] +