Skip to content

Instantly share code, notes, and snippets.

@anoopt
Created October 9, 2020 10:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoopt/e69a71ebb42d592c614da90ed1e523e7 to your computer and use it in GitHub Desktop.
Save anoopt/e69a71ebb42d592c614da90ed1e523e7 to your computer and use it in GitHub Desktop.
Docker file needed for GitHub codespaces SPFx development
FROM node:10.22.0
RUN npm i -g gulp@3 yo @microsoft/generator-sharepoint@1.11.0
VOLUME /usr/app/spfx
WORKDIR /usr/app/spfx
RUN useradd --create-home --shell /bin/bash spfx && \
usermod -aG sudo spfx && \
chown -R spfx:spfx /usr/app/spfx
USER spfx
CMD /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment