Sign inSign up

sudharsank/spfx

By sudharsank

Updated 8 months ago

Docker images for SharePoint Framework

Image
Languages & frameworks
Integration & delivery
Developer tools
0

322

sudharsank/spfx repository overview

Docker images for running SharePoint Framework.

Usage

  • in Docker Settings > Shared Drives verify that the drive where you create your projects is shared
  • Create a folder for your SharePoint Framework project
  • In the command line (on macOS):
cd [your project]
docker run -it --rm --name ${PWD##*/} -v $PWD:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx
  • In PowerShell on Windows:
cd [your project]
docker run -it --rm --name spfx-helloworld -v ${PWD}:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx
  • In other shells on Windows
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

Available tags

  • 1.19: contains the SharePoint Framework Yeoman generator from the 1.19 release
  • 1.18.2: contains the SharePoint Framework Yeoman generator from the 1.18.2 release
  • 1.18.1: contains the SharePoint Framework Yeoman generator from the 1.18.1 release

Tag summary

Content type

Image

Digest

sha256:e329afc08

Size

455.1 MB

Last updated

8 months ago

docker pull sudharsank/spfx:1.22