Skip to content

Commit

Permalink
Merge pull request #2831 from alphagov/yarn-install-dockerfile
Browse files Browse the repository at this point in the history
Add `yarn install` to `Dockerfile`
  • Loading branch information
GDSNewt authored Oct 31, 2024
2 parents ef97ea4 + ed8c781 commit 09c5f14
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 09c5f14

Please sign in to comment.