diff --git a/.runme/Dockerfile.runme b/.runme/Dockerfile.runme new file mode 100644 index 0000000000..46c3e5f156 --- /dev/null +++ b/.runme/Dockerfile.runme @@ -0,0 +1,6 @@ +FROM node:12.10.0 +WORKDIR /app +RUN npx @docusaurus/init@next init website classic +RUN npm install http-server -g +RUN cd website && npm run build +ENTRYPOINT http-server ./website/build/ -p 80 -a 0.0.0.0 diff --git a/.runme/config.yaml b/.runme/config.yaml new file mode 100644 index 0000000000..7a40b926eb --- /dev/null +++ b/.runme/config.yaml @@ -0,0 +1,10 @@ +version: 1.0 +publish: app +services: + app: + build: + type: dockerfile + config: ./.runme/Dockerfile.runme + ports: + - container: 80 + public: 80 \ No newline at end of file diff --git a/README.md b/README.md index f033410043..90ca83af06 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ Docusaurus is available as the [`docusaurus` package](https://www.npmjs.com/pack We have also released the [`docusaurus-init` package](https://www.npmjs.com/package/docusaurus-init) to make [getting started](https://docusaurus.io/docs/en/installation/) with Docusaurus even easier. +## Demo + +[![Runme](https://runme.io/static/button.svg)](https://runme.io/run?app_id=0dd80306-47bb-4e80-95dc-dc95eb05d3fd)- Click on button to see quick-start demo + ## Contributing We've released Docusaurus because it helps us better scale and supports the many OSS projects at Facebook. We hope that other organizations can benefit from the project. We are thankful for any contributions from the community.