From c5476b8d4ee977584a20f8be13d30d6492516723 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Mon, 27 Jan 2025 22:33:10 -0500 Subject: [PATCH] bug/issue 164 fix markdown indention for hosting index page (#169) --- src/pages/guides/hosting/index.md | 68 +++++++++++++++---------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/pages/guides/hosting/index.md b/src/pages/guides/hosting/index.md index 537de7ed..bf7e7534 100644 --- a/src/pages/guides/hosting/index.md +++ b/src/pages/guides/hosting/index.md @@ -89,60 +89,60 @@ These steps are based on a Greenwood application generated by `@greenwood/init` 1. Add `**/.greenwood` to _.dockerignore_ 1. If using npm, make sure to mount the _.npmrc_ file in both the **deps** _and_ **build** stages, e.g. - - + + - ```Dockerfile - RUN --mount=type=bind,source=package.json,target=package.json \ - --mount=type=bind,source=package-lock.json,target=package-lock.json \ - --mount=type=cache,target=/root/.npm \ - --mount=type=bind,source=.npmrc,target=.npmrc \ - npm ci --omit=dev - ``` + ```Dockerfile + RUN --mount=type=bind,source=package.json,target=package.json \ + --mount=type=bind,source=package-lock.json,target=package-lock.json \ + --mount=type=cache,target=/root/.npm \ + --mount=type=bind,source=.npmrc,target=.npmrc \ + npm ci --omit=dev + ``` - + - + 1. Install the `@greenwood/cli` in the **deps** stage, e.g. - - + + - ```Dockerfile - RUN npm i @greenwood/cli@latest - ``` + ```Dockerfile + RUN npm i @greenwood/cli@latest + ``` - + - + 1. Copy the _.greenwood/_ directory into the container - - + + - ```Dockerfile - COPY --from=deps /usr/src/app/node_modules ./node_modules - COPY --from=build /usr/src/app/public ./public - COPY --from=build /usr/src/app/.greenwood ./.greenwood - ``` + ```Dockerfile + COPY --from=deps /usr/src/app/node_modules ./node_modules + COPY --from=build /usr/src/app/public ./public + COPY --from=build /usr/src/app/.greenwood ./.greenwood + ``` - + - + 1. Run the serve command - - + + - ```Dockerfile - CMD npm run serve - ``` + ```Dockerfile + CMD npm run serve + ``` - + - + > Many self-hosting solutions support Docker, like our [demo repo](https://github.com/ProjectEvergreen/greenwood-demo-platform-fly) using [**Fly.io**](https://fly.io/).