Skip to content

Commit

Permalink
bug/issue 164 fix markdown indention for hosting index page (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Jan 28, 2025
1 parent eb512d6 commit c5476b8
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions src/pages/guides/hosting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
```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
```
</app-ctc-block>
</app-ctc-block>
<!-- prettier-ignore-end -->
<!-- prettier-ignore-end -->
1. Install the `@greenwood/cli` in the **deps** stage, e.g.
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
```Dockerfile
RUN npm i @greenwood/cli@latest
```
```Dockerfile
RUN npm i @greenwood/cli@latest
```
</app-ctc-block>
</app-ctc-block>
<!-- prettier-ignore-end -->
<!-- prettier-ignore-end -->
1. Copy the _.greenwood/_ directory into the container
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
```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
```
</app-ctc-block>
</app-ctc-block>
<!-- prettier-ignore-end -->
<!-- prettier-ignore-end -->
1. Run the serve command
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
<!-- prettier-ignore-start -->
<app-ctc-block variant="snippet" heading="Dockerfile">
```Dockerfile
CMD npm run serve
```
```Dockerfile
CMD npm run serve
```
</app-ctc-block>
</app-ctc-block>
<!-- prettier-ignore-end -->
<!-- prettier-ignore-end -->
> Many self-hosting solutions support Docker, like our [demo repo](https://github.com/ProjectEvergreen/greenwood-demo-platform-fly) using [**Fly.io**](https://fly.io/).

0 comments on commit c5476b8

Please sign in to comment.