skip to Main Content

How to convert Docker run flags into a Dockerfile

I have this docker run command: docker run -d --name node1 --network host -v $(pwd)/genesis.json:/opt/besu/genesis.json -v $(pwd)/keys/validator1/key:/opt/besu/key --env-file $(pwd)/common.env --env-file $(pwd)/bootnodes.env node1:latest This works fine. But I want to put the flags inside the Dockerfile, to just run docker run…

VIEW QUESTION
Back To Top
Search