Skip to content

Commit

Permalink
Skip rule DL3018 when adding runtime dependencies
Browse files Browse the repository at this point in the history
Skip Hadolint rule DL3018 (Pin versions in apk add) because package list
is programmatically generated.
  • Loading branch information
sbreker committed Apr 26, 2024
1 parent de1c047 commit a145613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 1.1.21.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV GEARMAND_SHA1 472d2a0019e69edefcd0c1ff57e9352982e6d3f5
SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]

RUN addgroup -S gearman && adduser -G gearman -S -D -H -s /bin/false -g "Gearman Server" gearman

# hadolint ignore=DL3018
RUN apk add --no-cache --virtual .build-deps \

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3003 info: Use WORKDIR to switch to a directory

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3019 info: Use the `--no-cache` switch to avoid the need to use `--update` and remove `/var/cache/apk/*` when done installing packages

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

SC2086 info: Double quote to prevent globbing and word splitting.

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3047 info: Avoid use of wget without progress bar. Use `wget --progress=dot:giga <url>`. Or consider using `-q` or `-nv` (shorthands for `--quiet` or `--no-verbose`).
wget=1.21.4-r0 \
tar=1.35-r2 \
Expand Down Expand Up @@ -48,6 +48,8 @@ RUN apk add --no-cache --virtual .build-deps \
| xargs -r apk info --installed || true \
| sort -u \
)" \
# Package list is programmatically generated.
# hadolint ignore=DL3018
&& apk add --virtual .gearmand-rundeps $runDeps \
&& apk del .build-deps \
&& /usr/local/sbin/gearmand --version
Expand Down

0 comments on commit a145613

Please sign in to comment.