Skip to content

Commit

Permalink
Fix hadolint - ignore false positives.
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 8, 2022
1 parent 0700acc commit 8d415a6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions extras/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ ARG USER=node
# --target=builder
#
########################################################################################

# hadolint ignore=DL3006
FROM ${BUILDER} AS builder
ARG TARGET
ARG GITHUB_ACCOUNT
Expand All @@ -36,12 +38,12 @@ ARG DOWNLOAD
ARG SOURCE_BRANCH
ARG PACKAGE_MANAGER

# hadolint ignore=DL3002
# hadolint ignore=DL3002,DL3018,DL3002
USER root
# Ensure that the chosen package manger is supported by this Dockerfile
# also ensure that unzip is installed prior to downloading sources

# hadolint ignore=SC2039
# hadolint ignore=SC2039,DL3008,SC3037,DL3033,DL3018
RUN \
if [ "${PACKAGE_MANAGER}" = "apt" ]; then \
echo -e "\033[0;34mINFO: Using default \"${PACKAGE_MANAGER}\".\033[0m"; \
Expand All @@ -64,6 +66,8 @@ RUN \
#
# COPY . ${TARGET}/
#

# hadolint ignore=DL4006
RUN \
if [ "${DOWNLOAD}" = "latest" ] ; \
then \
Expand Down Expand Up @@ -96,6 +100,7 @@ RUN \
# as defined below.
#
########################################################################################
# hadolint ignore=DL3006
FROM ${BUILDER} AS anon-user
# hadolint ignore=DL3002
USER root
Expand All @@ -116,6 +121,7 @@ RUN sed -i -r "/^(root|nobody)/!d" /etc/passwd /etc/shadow /etc/group \
#
########################################################################################

# hadolint ignore=DL3006
FROM ${DISTROLESS} AS distroless
ARG GITHUB_ACCOUNT
ARG GITHUB_REPOSITORY
Expand Down Expand Up @@ -162,6 +168,7 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=60s \
#
########################################################################################

# hadolint ignore=DL3006
FROM ${DISTRO} AS slim
ARG GITHUB_ACCOUNT
ARG GITHUB_REPOSITORY
Expand Down

0 comments on commit 8d415a6

Please sign in to comment.