Next, we need to install the npm packages required by our application, and build our application using yarn run build. Add the following lines after the COPY instruction:
RUN yarn
RUN yarn run build
Next, we need to install the npm packages required by our application, and build our application using yarn run build. Add the following lines after the COPY instruction:
RUN yarn
RUN yarn run build