Because I'm a huge fan of dockerizing all of my development environments, I don't want to install node
, npm
(or yarn
), and create-react-app
in my machine, not even for generating a create-react-app
scaffold.
For that reason I created a simple docker image, that does only one thing, installs create-react-app
and generates a create-react-app
scaffold.
Usage
$ docker run --rm -v $PWD:/app edgargonzalez/create-react-app my-app
Creating a new React app in /app/my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
...
Happy hacking!
Github repo
The code for the Docker image lives in the following repository:
edgar / docker-create-react-app
Docker image for create-react-app
Docker image for create-react-app
A docker image to avoid installing node
, npm
(yarn
), and create-react-app
in a development machine, to generate a create-react-app
scaffold.
Usage
$ docker run --rm -v $PWD:/app edgargonzalez/create-react-app my-app
Creating a new React app in /app/my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
...
Happy hacking!
Top comments (0)