From 189280e60265b1c0fc346eac1750145eb0a7ca96 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 2 Jun 2019 17:06:00 +0900 Subject: [PATCH] Fix docker images --- Dockerfile.linuxamd64 | 10 +++++++--- Dockerfile.linuxarm32v7 | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Dockerfile.linuxamd64 b/Dockerfile.linuxamd64 index 298c31978..10430ca75 100644 --- a/Dockerfile.linuxamd64 +++ b/Dockerfile.linuxamd64 @@ -1,9 +1,13 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1.505-alpine3.7 AS builder WORKDIR /source -COPY BTCPayServer/BTCPayServer.csproj BTCPayServer.csproj -RUN dotnet restore +COPY BTCPayServer/BTCPayServer.csproj BTCPayServer/BTCPayServer.csproj +COPY BTCPayServer.Common/BTCPayServer.Common.csproj BTCPayServer.Common/BTCPayServer.Common.csproj +COPY BTCPayServer.Rating/BTCPayServer.Rating.csproj BTCPayServer.Rating/BTCPayServer.Rating.csproj +RUN cd BTCPayServer && dotnet restore COPY BTCPayServer/. . -RUN dotnet publish --output /app/ --configuration Release +COPY BTCPayServer.Rating/. . +COPY BTCPayServer.Common/. . +RUN cd BTCPayServer && dotnet publish --output /app/ --configuration Release FROM mcr.microsoft.com/dotnet/core/aspnet:2.1.9-alpine3.7 diff --git a/Dockerfile.linuxarm32v7 b/Dockerfile.linuxarm32v7 index 77b312a77..1174a1f6f 100644 --- a/Dockerfile.linuxarm32v7 +++ b/Dockerfile.linuxarm32v7 @@ -4,10 +4,14 @@ RUN apt-get update \ && apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support WORKDIR /source -COPY BTCPayServer/BTCPayServer.csproj BTCPayServer.csproj +COPY BTCPayServer/BTCPayServer.csproj BTCPayServer/BTCPayServer.csproj +COPY BTCPayServer.Common/BTCPayServer.Common.csproj BTCPayServer.Common/BTCPayServer.Common.csproj +COPY BTCPayServer.Rating/BTCPayServer.Rating.csproj BTCPayServer.Rating/BTCPayServer.Rating.csproj RUN dotnet restore COPY BTCPayServer/. . -RUN dotnet publish --output /app/ --configuration Release +COPY BTCPayServer.Rating/. . +COPY BTCPayServer.Common/. . +RUN cd BTCPayServer && dotnet publish --output /app/ --configuration Release # Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program FROM mcr.microsoft.com/dotnet/core/aspnet:2.1.9-stretch-slim-arm32v7