ceremonyclient icon indicating copy to clipboard operation
ceremonyclient copied to clipboard

multi stage Dockerfile and Taskfile

Open mscurtescu opened this issue 1 year ago • 0 comments

  • switching to a multi stage Dockerfile
    • build stage has golang
    • installs the node binary
    • installs the grpcurl tool
    • the target stage based on Alpine Linux
    • copies over the node and grpcurl binaries and a couple of json files
    • much smaller image, 151MB vs 1.18GB
    • safer since neither source code nor go are present in production
  • adding Taskfile task runner to help with building and running
  • adding healthcheck to docker-compose.yml
  • docker-compose.yml can be customised through .env
    • .env.example provided as a sample

mscurtescu avatar Mar 06 '24 04:03 mscurtescu