From e827a803d7a25c459b2ea04cfdb05b0958a15ec1 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Wed, 14 Apr 2021 14:31:53 +0200 Subject: [PATCH] Fix linting reported by super-linter (#37) --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 671f6d0..cc57d72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,24 @@ FROM ruby:2.6.4-alpine3.9 -LABEL maintainer "ferrari.marco@gmail.com" -RUN apk add --no-cache git +LABEL maintainer="ferrari.marco@gmail.com" +SHELL ["/bin/ash", "-eo", "pipefail", "-c"] + +RUN apk add --no-cache \ + git=2.20.4-r0 + +WORKDIR / COPY Gemfile Gemfile -RUN gem install bundler --version $(cat Gemfile | grep bundler | awk -F "'" '{print $4}') \ +RUN gem install bundler --version "$(grep bundler Gemfile | awk -F "'" '{print $4}')" \ && bundle install --system \ - && gem uninstall bundler + && gem uninstall bundler \ + && rm Gemfile ENV SRC_PATH /usr/local/src/your-app -RUN mkdir -p $SRC_PATH +RUN mkdir -p "${SRC_PATH}" VOLUME [ "$SRC_PATH" ] WORKDIR $SRC_PATH -CMD ["--help"] ENTRYPOINT ["github_changelog_generator"] +CMD ["--help"]