mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
18 lines
432 B
Plaintext
18 lines
432 B
Plaintext
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
|
|
COPY . .
|
|
RUN 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"] |