From 758295e30e3e650862ee3226aa0ac8ba2a8339ce Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Sun, 9 Oct 2022 00:39:53 -0700 Subject: [PATCH 1/2] Use Ruby 2.7 in Docker image --- Dockerfile | 2 +- Dockerfile.codeclimate | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 436604cce2..5729cf397f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.5-alpine +FROM ruby:2.7-alpine LABEL maintainer="Justin Collins " WORKDIR /usr/src/app diff --git a/Dockerfile.codeclimate b/Dockerfile.codeclimate index 8a4604fd93..9600ba01d2 100644 --- a/Dockerfile.codeclimate +++ b/Dockerfile.codeclimate @@ -1,4 +1,4 @@ -FROM ruby:2.4-alpine +FROM ruby:2.7-alpine LABEL maintainer="Justin Collins" WORKDIR /usr/src/app From 87f87d4ca6aa717f527be7e48595c765ab935c60 Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Sun, 9 Oct 2022 10:01:25 -0700 Subject: [PATCH 2/2] Simplify Docker permission situation --- Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5729cf397f..40dc62d2b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,6 @@ LABEL maintainer="Justin Collins " WORKDIR /usr/src/app -# Create user named app with uid=9000, give it ownership of /usr/src/app -RUN adduser -u 9000 -D app && \ - chown -R app:app /usr/src/app -USER app - # Copy our Gemfile (and related files) *without* copying our actual source code yet COPY Gemfile* *.gemspec gem_common.rb ./ # Copy lib/brakeman/version.rb so that bundle install works