Skip to content

Commit

Permalink
Skip rule DL3003
Browse files Browse the repository at this point in the history
Skip Hadolint rule DL3003 (Use WORKDIR to switch to a directory) as
breaking up the main 'RUN apk add' statement would create more layers in
the build.
  • Loading branch information
sbreker committed Apr 28, 2024
1 parent fe7b927 commit c051533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1.1.21.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]
RUN addgroup -S gearman && adduser -G gearman -S -D -H -s /bin/false -g "Gearman Server" gearman

# Package list 'runDeps' is programmatically generated.
# hadolint ignore=DL3018, SC2086
# hadolint ignore=DL3018, SC2086, DL3003
RUN apk add --no-cache --virtual .build-deps \

Check failure on line 12 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 12 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
wget=1.21.4-r0 \
tar=1.35-r2 \
Expand Down

0 comments on commit c051533

Please sign in to comment.