1
I created an application in React and decided to run it with Docker locally, only for development
At Dockerfile it was like this:
FROM node:8
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
In Docker-Compose.yaml:
version: '3'
services:
node8-app:
build: .
ports:
- "3000:3000"
volumes:
- ./:/usr/src/app
It worked, but when I make some change, and saved, I need to kill the container, and go back up to see what changed.
There’s some way to do it, without having to kill the container?