From 2377fd69b78c5e461fdff5e9780cb466ddd73aa5 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber Date: Tue, 15 Oct 2024 10:42:36 +0200 Subject: [PATCH 1/3] :rotating_light: Resolves "docker build" warnings Warnings were from Docker v27.2.0, build 3ab4256 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56f3fe4..cc0af38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.2.2-alpine3.17 as build +FROM ruby:3.2.2-alpine3.17 AS build # Ignore dependecies, they are for support only # hadolint ignore=DL3018 @@ -13,16 +13,16 @@ RUN bundle install --frozen --deployment --binstubs=/app/bin/ --no-cache --stand rm -vrf vendor/bundle/ruby/*/cache # app image -FROM pipelinecomponents/base-entrypoint:0.5.0 as entrypoint +FROM pipelinecomponents/base-entrypoint:0.5.0 AS entrypoint FROM ruby:3.2.2-alpine3.17 COPY --from=entrypoint /entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] -ENV DEFAULTCMD rubocop +ENV DEFAULTCMD=rubocop WORKDIR /app/ COPY --from=build /app/ /app/ -ENV PATH "${PATH}:/app/bin/" +ENV PATH="${PATH}:/app/bin/" WORKDIR /code/ # Build arguments From 9b6d7284c2822a4174bae48fdbf889b1f152feee Mon Sep 17 00:00:00 2001 From: Katrin Leinweber Date: Tue, 15 Oct 2024 13:17:56 +0200 Subject: [PATCH 2/3] :arrow_up: Updates bundler to v2.5.20 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cc0af38..892e553 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ruby:3.2.2-alpine3.17 AS build # Ignore dependecies, they are for support only # hadolint ignore=DL3018 RUN apk add --no-cache make build-base && \ - gem install bundler:2.0.2 && \ + gem install bundler:2.5.20 && \ bundle config --global frozen 1 WORKDIR /app/ From 1ddba4e8399b4fe61bdff3082f53c429915052c7 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber Date: Tue, 15 Oct 2024 10:43:07 +0200 Subject: [PATCH 3/3] :arrow_up: Updates base image to 3.2.5-alpine3.20 --- Dockerfile | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 892e553..194818c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.2.2-alpine3.17 AS build +FROM ruby:3.2.5-alpine3.20 AS build # Ignore dependecies, they are for support only # hadolint ignore=DL3018 @@ -15,7 +15,7 @@ RUN bundle install --frozen --deployment --binstubs=/app/bin/ --no-cache --stand # app image FROM pipelinecomponents/base-entrypoint:0.5.0 AS entrypoint -FROM ruby:3.2.2-alpine3.17 +FROM ruby:3.2.5-alpine3.20 COPY --from=entrypoint /entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] ENV DEFAULTCMD=rubocop diff --git a/README.md b/README.md index b82e36d..6a7d0fd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ## Usage The image is for running rubocop, rubocop is installed in /app/ in case you need to customize the install before usage. -The image is based on ruby:2.5.3-alpine3.8 +The image is based on ruby:3.2.5-alpine3.20 ## Examples