doomshrine/gocosi

[FEATURE]: Add Dockerfile while bootstraping a repository

shanduur opened this issue · 0 comments

Are you interested in contributing to the development of this feature?

Yes

Is your feature request related to a problem? Please describe.

New repos often are missing Dockerfiles, while learning and applying best practices is commonly a time consuming job.

Describe the solution you'd like.

Provide Dockerfile while bootstraping the new repository.

Dockerfile should include:

  • Multi stage build (docker.io/library/golang:1.<x> as builder and other base image, e.g. gcr.io/distroless/static:<X>, docker.io/rockylinux/rockylinux:<X>-ubi-micro or something similar);
  • Non root user;
  • Cache mechanism in the builder;
  • HEALTHCHECK instruction;

Describe alternatives you've considered.

N/A

Additional Information

N/A