Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.94 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.94 KB

dockerfiles

Build and Publish Docker image

Repo for various linux container images.

Inspiration

  • Mostly inspired from Jess Frazelle's dockerfiles repo
  • Rebuild public images to remove shell and make it leaner and secure
  • Build images for repos that doesn't have a dockerfile
  • Automatic dependency updates using Dependabot

Project Structure

  • Sample project structure
.
├── docker-bake.hcl
├── generate_matrix.sh
├── hydroxide
│   ├── Dockerfile
│   ├── go.mod
│   ├── go.sum
│   └── README.md
├── LICENSE
├── README.md
└── vaultwarden
    ├── Dockerfile
    ├── README.md
    └── test.sh

Each folder contains a Dockerfile, a README.md, and an optional test.sh

The go.mod is used to declare a weak dependency on upstream projects so that Dependabot can manage updates.

generate_matrix.sh is used to dynamically generate a GitHub actions matrix. The matrix is generated only on either Dockerfile or go.mod file changes.

The container image tags follow the upstream releases. The version is extracted from either Dockerfile or go.mod by generate_matrix.sh and passed on to buildx as VERSION build-arg. Ref