2021-10-23 15:09:13 +02:00
|
|
|
# Note that we are using buster rather than bullseye. Somehow, raspberry pi 4 doesn't like bullseye.
|
2022-10-07 07:53:30 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0.401-bullseye-slim AS builder
|
2020-06-02 11:37:14 +02:00
|
|
|
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
|
2019-06-17 14:42:48 +02:00
|
|
|
COPY Build/Common.csproj Build/Common.csproj
|
2020-11-05 10:21:09 +01:00
|
|
|
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
|
2019-06-02 10:33:35 +02:00
|
|
|
COPY BTCPayServer.Common/. BTCPayServer.Common/.
|
2019-06-03 18:55:07 +02:00
|
|
|
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/.
|
2020-11-05 10:21:09 +01:00
|
|
|
COPY BTCPayServer.Abstractions/. BTCPayServer.Abstractions/.
|
2019-06-03 18:55:07 +02:00
|
|
|
COPY BTCPayServer/. BTCPayServer/.
|
2019-06-17 14:42:48 +02:00
|
|
|
COPY Build/Version.csproj Build/Version.csproj
|
2020-07-29 13:08:05 +02:00
|
|
|
ARG CONFIGURATION_NAME=Release
|
2022-11-22 13:37:07 +01:00
|
|
|
ARG GIT_COMMIT
|
|
|
|
RUN cd BTCPayServer && dotnet publish -p:GitCommit=${GIT_COMMIT} --output /app/ --configuration ${CONFIGURATION_NAME}
|
2018-05-09 07:09:41 +02:00
|
|
|
|
2021-10-23 15:09:13 +02:00
|
|
|
# Note that we are using buster rather than bullseye. Somehow, raspberry pi 4 doesn't like bullseye.
|
2022-10-07 07:53:30 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0.9-bullseye-slim-arm32v7
|
2019-03-31 07:08:53 +02:00
|
|
|
COPY --from=builder /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
|
2019-09-20 10:23:32 +02:00
|
|
|
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/*
|
2018-05-09 07:09:41 +02:00
|
|
|
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
|
2018-11-23 03:21:01 +01:00
|
|
|
WORKDIR /datadir
|
2017-09-29 08:05:18 +02:00
|
|
|
WORKDIR /app
|
|
|
|
ENV BTCPAY_DATADIR=/datadir
|
2020-06-02 11:37:14 +02:00
|
|
|
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"]
|