btcpayserver/arm32v7.Dockerfile

45 lines
2.1 KiB
Docker
Raw Normal View History

2018-11-23 08:14:13 +01:00
# This is a manifest image, will pull the image with the same arch as the builder machine
2020-05-14 09:39:16 +02:00
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
2019-03-31 07:08:53 +02:00
RUN apt-get update \
&& apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support
2017-09-29 08:05:18 +02:00
WORKDIR /source
2019-10-08 08:21:30 +02:00
COPY nuget.config nuget.config
COPY Build/Common.csproj Build/Common.csproj
COPY BTCPayServer.Abstractions/BTCPayServer.Abstractions.csproj BTCPayServer.Abstractions/BTCPayServer.Abstractions.csproj
2019-06-02 10:06:00 +02:00
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
2019-09-04 10:37:40 +02:00
COPY BTCPayServer.Data/BTCPayServer.Data.csproj BTCPayServer.Data/BTCPayServer.Data.csproj
2020-03-25 16:57:54 +01:00
COPY BTCPayServer.Client/BTCPayServer.Client.csproj BTCPayServer.Client/BTCPayServer.Client.csproj
2019-06-18 06:51:04 +02:00
RUN cd BTCPayServer && dotnet restore
COPY BTCPayServer.Common/. BTCPayServer.Common/.
COPY BTCPayServer.Rating/. BTCPayServer.Rating/.
2019-09-04 10:37:40 +02:00
COPY BTCPayServer.Data/. BTCPayServer.Data/.
2020-03-25 16:57:54 +01:00
COPY BTCPayServer.Client/. BTCPayServer.Client/.
COPY BTCPayServer.Abstractions/. BTCPayServer.Abstractions/.
COPY BTCPayServer/. BTCPayServer/.
COPY Build/Version.csproj Build/Version.csproj
2020-07-29 13:08:05 +02:00
ARG CONFIGURATION_NAME=Release
2020-07-28 22:48:51 +02:00
RUN cd BTCPayServer && dotnet publish --output /app/ --configuration ${CONFIGURATION_NAME}
2018-11-23 08:14:13 +01:00
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
2020-05-14 09:39:16 +02:00
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1.4-buster-slim-arm32v7
2019-03-31 07:08:53 +02:00
COPY --from=builder /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 openssh-client \
2019-03-31 07:08:53 +02:00
&& rm -rf /var/lib/apt/lists/*
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
WORKDIR /datadir
2017-09-29 08:05:18 +02:00
WORKDIR /app
ENV BTCPAY_DATADIR=/datadir
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
2017-09-29 08:05:18 +02:00
VOLUME /datadir
COPY --from=builder "/app" .
2019-02-27 13:58:28 +01:00
COPY docker-entrypoint.sh docker-entrypoint.sh
2019-02-27 13:56:36 +01:00
ENTRYPOINT ["/app/docker-entrypoint.sh"]