2023-11-21 06:11:17 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim AS builder
|
2020-06-02 11:37:14 +02:00
|
|
|
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
|
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-02 10:06:00 +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}
|
2017-09-29 08:05:18 +02:00
|
|
|
|
2023-11-21 06:11:17 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-bookworm-slim
|
2018-05-09 07:09:41 +02:00
|
|
|
|
2019-10-09 09:18:32 +02:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 openssh-client \
|
|
|
|
&& 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
|
|
|
|
|
2019-10-09 09:18:32 +02: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"]
|