React app exiting in docker container with exit code 0

后端 未结 4 2096
无人共我
无人共我 2020-11-27 07:48

I am trying to create a docker-compose setup with nginzx, flask, and react. I started my react app with react-create-app (https://github.com/facebook/create-react-app) and h

4条回答
  •  一整个雨季
    2020-11-27 08:37

    Ran into same issue. Below mentioned steps resolved my problem: 1. add stdin_open: true

    version: '3.1'
    
    services:
      nginx:
        .
        .
      react:
        stdin_open: true
        .
        .
    

    2. Do not forget to build the container again after the above mentioned change is made.

    docker-compose down
    docker-compose up --build
    

提交回复
热议问题