Create a development environment for SharePoint Framework (SPFx) with a Docker container.
-
Clone this repository to a directory of your choice.
-
Move to the docker-spfx directory.
-
Execute the following command to start the container.
docker-compose up -d --build
-
Run the following command to confirm that the container has started.
docker-compose ps
Create a SPFx solution using the docker-compose command.
docker-compose run --rm app yo @microsoft/sharepoint
For more information on creating solution files, see here.