fix(docker): numeric uid/gid pour hadolint DL3066 + bump hadolint-action v3.5.0 #27

Merged
jcabillot merged 1 commits from fix/dl3066-numeric-uid into master 2026-09-13 10:46:26 -04:00
5 changed files with 8 additions and 6 deletions
Showing only changes of commit fb061f33a1 - Show all commits
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
continue-on-error: true
build:
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: Dockerfile
+1 -1
View File
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: Dockerfile
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
continue-on-error: true
build:
+4 -2
View File
@@ -4,8 +4,10 @@ LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
# hadolint ignore=DL3018
RUN apk add --no-cache mysql-client && \
rm -rf /usr/share/apk/keys && \
adduser -D muser
addgroup -g 1000 muser && \
adduser -D -u 1000 -G muser muser
USER muser
# Numeric uid/gid (DL3066): identity stays resolvable by the host
USER 1000:1000
ENTRYPOINT [ "/usr/bin/mysql" ]