btcpayserver/BTCPayServer/DockerFile

13 lines
367 B
Text
Raw Normal View History

FROM microsoft/aspnetcore-build AS builder
WORKDIR /source
# caches restore result by copying csproj file separately
COPY *.csproj .
RUN dotnet restore
# copies the rest of your code
2017-09-28 19:00:46 +09:00
COPY . .
RUN dotnet publish --output /app/ --configuration Release
2017-09-28 19:00:46 +09:00
FROM microsoft/aspnetcore:2.0.0
WORKDIR /app
COPY --from=builder "/app" .
2017-09-28 16:35:29 +09:00
ENTRYPOINT ["dotnet", "BTCPayServer.dll"]