I have an app with the following services:
cockpit/– use as a headless CMS service.
frontend/– bootstrapped by Create React App.
I have a question about
FROM node:12.16.3-alpine RUN mkdir -p /app WORKDIR /app COPY package.json yarn.lock /app/ RUN yarn install --pure-lockfile COPY . /app CMD ["yarn", "run", "start"]
frontend: ... volumes: - ./frontend:/app - /app/node_modules
The question is
/app/node_modules is same meaning with
If not, what is the difference?
Source: Docker Questions