mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
18 lines
454 B
Docker
18 lines
454 B
Docker
FROM microsoft/aspnetcore-build:2.0.6-2.1.101-stretch AS builder
|
|
WORKDIR /source
|
|
COPY BTCPayServer/BTCPayServer.csproj BTCPayServer.csproj
|
|
# Cache some dependencies
|
|
RUN dotnet restore
|
|
COPY BTCPayServer/. .
|
|
RUN dotnet publish --output /app/ --configuration Release
|
|
|
|
FROM microsoft/aspnetcore:2.0.6-stretch
|
|
WORKDIR /app
|
|
|
|
RUN mkdir /datadir
|
|
ENV BTCPAY_DATADIR=/datadir
|
|
VOLUME /datadir
|
|
|
|
COPY --from=builder "/app" .
|
|
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]
|