btcpayserver/Dockerfile

18 lines
452 B
Text
Raw Normal View History

FROM microsoft/aspnetcore-build:2.0.5-2.1.4-stretch AS builder
2017-09-29 15:05:18 +09:00
WORKDIR /source
COPY BTCPayServer/BTCPayServer.csproj BTCPayServer.csproj
2017-09-29 15:05:18 +09:00
# Cache some dependencies
RUN dotnet restore
COPY BTCPayServer/. .
RUN dotnet publish --output /app/ --configuration Release
2017-09-29 15:05:18 +09:00
FROM microsoft/aspnetcore:2.0.5-stretch
2017-09-29 15:05:18 +09:00
WORKDIR /app
RUN mkdir /datadir
ENV BTCPAY_DATADIR=/datadir
VOLUME /datadir
COPY --from=builder "/app" .
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]