mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-11 01:35:22 +01:00
Improve build time for dockerfiles
This commit is contained in:
parent
9b7323f9fa
commit
39cc420415
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
WORKDIR /source
|
||||
COPY nuget.config nuget.config
|
||||
COPY Build/Common.csproj Build/Common.csproj
|
||||
|
@ -16,6 +15,7 @@ COPY BTCPayServer.Data/. BTCPayServer.Data/.
|
|||
COPY BTCPayServer.Client/. BTCPayServer.Client/.
|
||||
COPY BTCPayServer/. BTCPayServer/.
|
||||
COPY Build/Version.csproj Build/Version.csproj
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
RUN cd BTCPayServer && dotnet publish --output /app/ --configuration ${CONFIGURATION_NAME}
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1.4-buster-slim
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# This is a manifest image, will pull the image with the same arch as the builder machine
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
RUN apt-get update \
|
||||
&& apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support
|
||||
|
||||
|
@ -20,6 +19,7 @@ COPY BTCPayServer.Data/. BTCPayServer.Data/.
|
|||
COPY BTCPayServer.Client/. BTCPayServer.Client/.
|
||||
COPY BTCPayServer/. BTCPayServer/.
|
||||
COPY Build/Version.csproj Build/Version.csproj
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
RUN cd BTCPayServer && dotnet publish --output /app/ --configuration ${CONFIGURATION_NAME}
|
||||
|
||||
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# This is a manifest image, will pull the image with the same arch as the builder machine
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
RUN apt-get update \
|
||||
&& apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support
|
||||
|
@ -21,6 +20,7 @@ COPY BTCPayServer.Data/. BTCPayServer.Data/.
|
|||
COPY BTCPayServer.Client/. BTCPayServer.Client/.
|
||||
COPY BTCPayServer/. BTCPayServer/.
|
||||
COPY Build/Version.csproj Build/Version.csproj
|
||||
ARG CONFIGURATION_NAME=Release
|
||||
RUN cd BTCPayServer && dotnet publish --output /app/ --configuration ${CONFIGURATION_NAME}
|
||||
|
||||
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
|
||||
|
|
Loading…
Add table
Reference in a new issue