Skip to content

Commit 7d66315

Browse files
authored
Merge pull request #6409 from NHSDigital/next
Version 7.5.0
2 parents 623e108 + 714550c commit 7d66315

File tree

369 files changed

+2443
-5745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+2443
-5745
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-4.0.1
1+
ruby-4.0.2

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ nodejs 22.15.0
55
pkl 0.31.0
66
postgres 17.2
77
redis 8.2.1
8-
ruby 4.0.1
8+
ruby 4.0.2
99
shellcheck 0.11.0
1010
yamllint 1.38.0

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# check=error=true
33

44
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
5-
ARG RUBY_VERSION=4.0.1
5+
ARG RUBY_VERSION=4.0.2
66
ARG BUNDLE_WITHOUT="development:test"
77
ARG RAILS_ENV="production"
88
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
@@ -23,7 +23,8 @@ ENV RAILS_ENV="$RAILS_ENV" \
2323
NODE_ENV="production" \
2424
BUNDLE_WITHOUT="$BUNDLE_WITHOUT" \
2525
BUNDLE_DEPLOYMENT="1" \
26-
BUNDLE_PATH="/usr/local/bundle"
26+
BUNDLE_PATH="/usr/local/bundle" \
27+
XDG_STATE_HOME="/rails/tmp"
2728

2829
# Throw-away build stage to reduce size of final image
2930
FROM base AS build
@@ -77,11 +78,6 @@ FROM base
7778
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
7879
COPY --from=build /rails /rails
7980

80-
# Run and own only the runtime files as a non-root user for security
81-
RUN groupadd --system --gid 1000 rails && \
82-
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
83-
chown -R rails:rails db log storage tmp
84-
8581
# Generate and install self-signed TLS certificates at build time.
8682
RUN apt-get update -qq && \
8783
apt-get install --no-install-recommends -y sudo && \
@@ -90,6 +86,11 @@ RUN apt-get update -qq && \
9086
apt-get autoremove -y && \
9187
rm -rf /var/lib/apt/lists /var/cache/apt/archives
9288

89+
# Run and own only the runtime files as a non-root user for security
90+
RUN groupadd --system --gid 1000 rails && \
91+
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
92+
chown -R rails:rails db log storage tmp
93+
9394
USER 1000:1000
9495

9596
# Entrypoint prepares the database.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"
44
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55

66
ruby file: ".ruby-version"
7-
gem "rails", "8.1.2"
7+
gem "rails", "8.1.2.1"
88

99
# Framework gems
1010
gem "bootsnap", require: false

0 commit comments

Comments
 (0)