mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-21 01:50:28 +00:00
feat: Low-Privileged and Distroless Docker Image (#372)
* feat: use distroless image and non-root user * fix: remove conflicts after merge * chore: Commen the Dockerfile * chore: Update documentation to reflect image changes * Split docker build in latest and latest-rootless One more job added to the publish Github Action, to build and push TAG-rootless images. * fix: add missing workflow * feat: update documentation about double tags * feat: update readme with double tags --------- Co-authored-by: daniele <daniele@coolbyte.eu>
This commit is contained in:
parent
56c98e6e3a
commit
66e25ba068
4 changed files with 86 additions and 1 deletions
13
.github/workflows/partial-publish.yaml
vendored
13
.github/workflows/partial-publish.yaml
vendored
|
@ -64,3 +64,16 @@ jobs:
|
|||
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||
--build-arg BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
|
||||
--platform linux/amd64,linux/arm64,linux/arm/v7 .
|
||||
|
||||
- name: build release tagged the rootless image
|
||||
if: ${{ inputs.release == true }}
|
||||
run: |
|
||||
docker build --push --no-cache \
|
||||
--tag ghcr.io/hay-kot/homebox:nightly-rootless \
|
||||
--tag ghcr.io/hay-kot/homebox:latest-rootless \
|
||||
--tag ghcr.io/hay-kot/homebox:${{ inputs.tag }}-rootless \
|
||||
--build-arg VERSION=${{ inputs.tag }} \
|
||||
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||
--build-arg BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
|
||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||
--file Dockerfile.rootless .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue