Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

React app exiting in docker container with exit code 0

Adding: stdin_open: true to the React component of my docker-compose file fixed my issue.

Example:

version: '3.1'

services:
    react:
        build:
            context: ../react-app/
            dockerfile: ./Dockerfile
        container_name: react
        volumes:
            - ../react-app:/usr/src/app
        networks:
            my-network:
                aliases:
                    - react-app
        expose:
            - 3000
        ports:
            - "3000:3000"
        stdin_open: true

It looks like an issue with [React-Scripts] v3.4.1. Please look into this link

Tags:

Docker

Nginx

Reactjs

Docker Compose

Related

Pandas Dataframe - Droping Certain Hours of the Day from 20 Years of Historical Data Recoding a semicolon separated list in R Azure DevOps Code Coverage for .NET Core 3.1 JavaScript to C# Numeric Precision Loss Azure Devops UnitTest not finding ".deps.json" file Proper nullable annotation for async generic method that may return default(T) error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner') Better typed function to generate media queries Implementing a trainable generalized Bump function layer in Keras/Tensorflow Starting .ps1 Script from PowerShell with Parameters and Credentials and getting output using variable Difference between trim{it <= ' '} and trim in kotlin? How to detect Swiping UP, DOWN, LEFT and RIGHT with SwiftUI on a View

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy