Docker images for SharePoint Framework
322
Docker images for running SharePoint Framework.
cd [your project]
docker run -it --rm --name ${PWD##*/} -v $PWD:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx
cd [your project]
docker run -it --rm --name spfx-helloworld -v ${PWD}:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx
cd [your project]
docker run -it --rm --name spfx-helloworld -v %cd%:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx
After the container started you can work with it the same way you would work with SharePoint Framework installed on your host. To create a new SharePoint Framework project in the container command line execute:
yo @microsoft/sharepoint
All files scaffolded by the generator will be stored in your project directory on your host from where you can commit them to source control.
To close the container in the container command line run:
exit
Content type
Image
Digest
sha256:e329afc08…
Size
455.1 MB
Last updated
8 months ago
docker pull sudharsank/spfx:1.22