diff --git a/.dockerignore b/.dockerignore index 830a171e1..826cdd4c1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,9 +10,7 @@ docs features log node_modules -package.json script spec test tmp -yarn.lock diff --git a/Dockerfile b/Dockerfile index 9d0ad85fe..fb9302586 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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