skip to Main Content

Dockerfile – Error: Cannot find module 'react'

I have a React app that I'm trying to Dockerize. Here is my Dockerfile and docker-compose: FROM node:16.13.1 WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH COPY package.json . COPY package-lock.json . RUN mkdir -p node_modules/node-sass/vendor/linux-x64-93 RUN curl -L https://github.com/sass/node-sass/releases/download/v7.0.1/linux-x64-93_binding.node -o node_modules/node-sass/vendor/linux-x64-93/binding.node RUN…

VIEW QUESTION
Back To Top
Search