Skip to content

Commit

Permalink
Add yarn install to Dockerfile
Browse files Browse the repository at this point in the history
Following #2816 a `yarn install` install is required to build the application.

Without this the [build step in deployment was failing](https://github.com/alphagov/specialist-publisher/actions/runs/11571811805/job/32210489450).
  • Loading branch information
dnkrj committed Oct 30, 2024
1 parent ef97ea4 commit ed8c781
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ docs
features
log
node_modules
package.json
script
spec
test
tmp
yarn.lock
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ENV GOVUK_NOTIFY_API_KEY=unused
WORKDIR $APP_HOME
COPY Gemfile* .ruby-version ./
RUN bundle install
COPY package.json yarn.lock ./
RUN yarn install --production
COPY . .
RUN bootsnap precompile --gemfile .
RUN rails assets:precompile && rm -fr log
Expand Down

0 comments on commit ed8c781

Please sign in to comment.