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 a8ddf75
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions 1.1.21.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ RUN apk add --no-cache --virtual .build-deps \
&& make \
&& make install \
&& cd / && rm -rf /usr/src/gearmand \
&& runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u \
| xargs -r apk info --installed || true \
| sort -u \
)" \
&& apk add --virtual .gearmand-rundeps $runDeps \
# && runDeps="$( \
# scanelf --needed --nobanner --recursive /usr/local \
# | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
# | sort -u \
# | xargs -r apk info --installed || true \
# | sort -u \
# )" \
# && apk add --virtual .gearmand-rundeps $runDeps \
&& apk del .build-deps \
&& /usr/local/sbin/gearmand --version

Expand Down

0 comments on commit a8ddf75

Please sign in to comment.