I often make react applications as SSR. At this time, I use a docker container(docker-compose)
I write the following.(DcokerFile)
# pull base image
・
・
・
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
CMD ["npm", "start"]
But, I suddenly thought that I can use volumes prop instead of copy prop in docker-compose.
As bellow.(docker-compose.yml)
volumes:
- ./:/usr/src/app
What are pros that I use copy props instead of volumes props?