{"id":21180079,"url":"https://github.com/stfbauer/docker-spfx-pnp-samples","last_synced_at":"2026-05-07T12:31:43.923Z","repository":{"id":86930699,"uuid":"85314253","full_name":"StfBauer/docker-spfx-pnp-samples","owner":"StfBauer","description":"Docker Image to try all SPFx Pnp Sample","archived":false,"fork":false,"pushed_at":"2017-03-19T18:32:57.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T12:08:46.082Z","etag":null,"topics":["docker","docker-image","sharepoint","sharepoint-framework","sharepoint-online","spfx"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StfBauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-17T13:25:30.000Z","updated_at":"2019-10-03T17:25:15.000Z","dependencies_parsed_at":"2023-05-29T20:45:14.564Z","dependency_job_id":null,"html_url":"https://github.com/StfBauer/docker-spfx-pnp-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StfBauer%2Fdocker-spfx-pnp-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StfBauer%2Fdocker-spfx-pnp-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StfBauer%2Fdocker-spfx-pnp-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StfBauer%2Fdocker-spfx-pnp-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StfBauer","download_url":"https://codeload.github.com/StfBauer/docker-spfx-pnp-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243632408,"owners_count":20322382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","sharepoint","sharepoint-framework","sharepoint-online","spfx"],"created_at":"2024-11-20T17:35:52.418Z","updated_at":"2026-05-07T12:31:38.903Z","avatar_url":"https://github.com/StfBauer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharePoint Framework Office PNP Docker file\n\nDocker images recipe for running [SharePoint Framework Pattern and Practices samples](https://github.com/SharePoint/sp-dev-fx-webparts).  \n\n\n## Usage\nIn the HOSTS file on your host add:\n```\n127.0.0.1    spfx\n```\n### Clone this repository\n```\ngit clone https://github.com/StfBauer/docker-spfx-pnp-samples.git\n```\n\n### Create docker image for SPFX Pattern and Practices sample\nCreate docker image specific to one of the sample listed on [SPFX PnP Samples](https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples)  \nFor example create container for jquery-cdn sample pass in the following command: \n```  \ndocker build -t spfx-samples:jquery-cdn . --build-arg samplename=\"jquery-cdn\"  \n```  \nPass in folder name to image name and tag 'spfx-samples:\u003cSPFX PnP Sample Foldername\u003e'.  \nSet 'samplename' build argument to same folder name.\n### To run container  \n\n```  \ndocker run -h spfx --name spfx-jquery-cdn -it -p 5432:5432 -p 4321:4321 -p 35729:35729 spfx-samples:jquery-cdn\n```\n\nSet ```--name``` argument to your desired name. In this case ```spfx-jquery-cdn``` was used.  \nTo exit container press ```CTRL+C``` this will exit the container.\n### To restart container again:  \n\n```\ndocker start spfx-jquery-cdn\n```\n\n### To access running container via shell  \n\n```\ndocker exec -it spfx-jquery-cdn /bin/bash\n```\n\n## Additional information\nAdditional information can be found in my blog post \"[How to run SharePoint Framework Pattern and Practices Samples through Docker](http://www.n8d.at/blog/how-to-run-sharepoint-pattern-and-practices-samples-through-docker/)\"\n\n## Known issues\nThere are some know issues on Windows documented on [Dockers Github page](https://github.com/docker/kitematic/wiki/Common-Issues-and-Fixes#windows-10).\n\n## Limitations\nWindows 10 Anniversary Update and Windows Server 2016 have native support for containers. At this moment Windows supports only containers built on Windows Server Core or Nano Server and you won't be able to run this container natively on Windows. Instead you should use Docker for Windows or Docker Toolbox.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstfbauer%2Fdocker-spfx-pnp-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstfbauer%2Fdocker-spfx-pnp-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstfbauer%2Fdocker-spfx-pnp-samples/lists"}