Skip to content

Commit

Permalink
Merge pull request #1735 from presidentbeef/update_docker_to_ruby_2_7
Browse files Browse the repository at this point in the history
Use Ruby 2.7 in Docker image
  • Loading branch information
presidentbeef authored Oct 9, 2022
2 parents 61b7946 + 87f87d4 commit 985a289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
FROM ruby:2.5-alpine
FROM ruby:2.7-alpine
LABEL maintainer="Justin Collins <gem@brakeman.org>"

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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.codeclimate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.4-alpine
FROM ruby:2.7-alpine
LABEL maintainer="Justin Collins"

WORKDIR /usr/src/app
Expand Down

0 comments on commit 985a289

Please # to comment.