Open mansogf opened 3 years ago
The error was happening because of 2 factors:
botFlow
instead of botflow
.FROM node:10-jessie-slim
RUN mkdir /botflow
WORKDIR /botflow
COPY ./app .
EXPOSE 3000
CMD ["sh", "-c", "yarn install && yarn start"]
package.json
. Thus, I added the following command:COPY /app/package.json .
Also, to optimize the Dockerfile was added the following line:
RUN yarn install # cache the command
CMD ["sh", "-c", "yarn start"]
Describe the bug Was reported by the team that while developing the app the docker was not updating changes on the application correctly.
Steps to Reproduce
Expected behavior When the code is changed, it, immediately, must reflect the changes in the application.