Skip to content

Commit

Permalink
Revert "Deleted Dockerfile from src\Neo.CLI"
Browse files Browse the repository at this point in the history
This reverts commit b877de0.
  • Loading branch information
cschuchardt88 committed Jun 26, 2024
1 parent bd56d4c commit 98b27c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Neo.CLI/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS Build

# Run this from the repository root folder
COPY src .
COPY NuGet.Config /Neo.CLI

WORKDIR /Neo.CLI
RUN dotnet restore && dotnet publish -f net8.0 -c Release -o /app

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 AS Final
RUN apt-get update && apt-get install -y \
screen \
libleveldb-dev \
sqlite3
RUN rm -rf /var/lib/apt/lists/*

WORKDIR /Neo.CLI
COPY --from=Build /app .

ENTRYPOINT ["screen","-DmS","node","dotnet","neo-cli.dll","-r"]

0 comments on commit 98b27c5

Please sign in to comment.