mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
17 lines
470 B
Text
17 lines
470 B
Text
|
FROM microsoft/aspnetcore-build AS builder
|
||
|
WORKDIR /source
|
||
|
COPY BTCPayServer/BTCPayServer.csproj BTCPayServer/BTCPayServer.csproj
|
||
|
# Cache some dependencies
|
||
|
RUN cd BTCPayServer && dotnet restore && cd ..
|
||
|
COPY . .
|
||
|
RUN cd BTCPayServer && dotnet publish --output /app/ --configuration Release
|
||
|
|
||
|
FROM microsoft/aspnetcore:2.0.0
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN mkdir /datadir
|
||
|
ENV BTCPAY_DATADIR=/datadir
|
||
|
VOLUME /datadir
|
||
|
|
||
|
COPY --from=builder "/app" .
|
||
|
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]
|