Closed Wbsba closed 11 months ago
u need to use SCREEN or use docker UI to get to terminal and start it than hide to background with "screen" program.
EDIT:
ENTRYPOINT ["screen","-DmS","node","dotnet","neo-cli.dll","-r"]
Old, if remains, please re-open
docker build -t neo-cli . [+] Building 0.3s (17/17) FINISHED
=> [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 529B 0.0s => [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:7.0 0.2s => [internal] load metadata for mcr.microsoft.com/dotnet/sdk:7.0 0.2s => [build 1/6] FROM mcr.microsoft.com/dotnet/sdk:7.0@sha256:a06d87abe11238f2fbc076149edfbf91e88f06f54ab9c7282824e346322b8665 0.0s => [final 1/5] FROM mcr.microsoft.com/dotnet/aspnet:7.0@sha256:1019d8b5d11ed5b4bed215d6073293a6cd7c0e70991bddb245aa15439908b152 0.0s => [internal] load build context 0.0s => => transferring context: 2.10kB 0.0s => CACHED [final 2/5] RUN apt-get update && apt-get install -y screen libleveldb-dev sqlite3 0.0s => CACHED [final 3/5] RUN rm -rf /var/lib/apt/lists/* 0.0s => CACHED [final 4/5] WORKDIR /neo-cli 0.0s => CACHED [build 2/6] COPY neo-cli /neo-cli 0.0s => CACHED [build 3/6] COPY Neo.ConsoleService /Neo.ConsoleService 0.0s => CACHED [build 4/6] COPY NuGet.Config /neo-cli 0.0s => CACHED [build 5/6] WORKDIR /neo-cli 0.0s => CACHED [build 6/6] RUN dotnet restore && dotnet publish -c Release -o /app 0.0s => CACHED [final 5/5] COPY --from=Build /app . 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:f949f5f8a0246a8f14c8dcd35e166999a9b2221fd8581ee5dac1ffe7a411f335 0.0s => => naming to docker.io/library/neo-cli
docker run -p 10332:10332 -p 10333:10333 --name=neo-cli-mainnet neo-cli cant run ,log is empty