From fec199a07efa0f35dba0918ab9cc828490fbcdf8 Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Wed, 31 Jul 2019 09:26:53 -0700 Subject: [PATCH] linting Dockerfile (#2) https://github.com/hadolint/hadolint/wiki/DL3017 https://github.com/hadolint/hadolint/wiki/DL3019 --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd1846e..5e4d247 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,10 @@ LABEL "com.github.actions.color"="green" LABEL "maintainer"="Scott Brenner " -RUN apk update && apk upgrade -RUN apk add python3 -RUN rm -rf /var/cache/apk/* +RUN apk --no-cache add python3 RUN pip3 install cfn-lint COPY entrypoint.sh /entrypoint.sh RUN ["chmod", "+x", "/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"] -CMD ["**/*.yml"] \ No newline at end of file +CMD ["**/*.yml"]