btcpayserver/amd64.Dockerfile

41 lines
1.7 KiB
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/sdk:6.0.401-bullseye-slim AS builder
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
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-02 10:06:00 +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
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
FROM mcr.microsoft.com/dotnet/aspnet:6.0.9-bullseye-slim
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/*
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
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"]