-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99e12b1
commit 70bf739
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.docusaurus | ||
node_modules | ||
processed-docs | ||
processed-docs-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
VERSION 0.8 | ||
|
||
FROM node:18.19.0 | ||
WORKDIR /usr/src/docs | ||
|
||
deps: | ||
COPY ./yarn.lock ./yarn.lock | ||
COPY ./package.json ./package.json | ||
RUN yarn install --frozen-lockfile | ||
|
||
build: | ||
BUILD ../yarn-project/+build-dev | ||
BUILD ../+release-meta | ||
FROM +deps | ||
|
||
RUN apt update && apt install -y jq curl perl && rm -rf /var/lib/apt/lists/* && apt-get clean | ||
|
||
COPY --dir ../yarn-project/+build-dev/usr/src /usr | ||
COPY ../+release-meta/usr/src/.release-please-manifest.json /usr/src | ||
|
||
COPY . . | ||
|
||
RUN ./scripts/build.sh | ||
SAVE ARTIFACT build | ||
|
||
serve: | ||
FROM +deps | ||
COPY +build/build build | ||
COPY ./static static | ||
COPY ./src src | ||
COPY ./docusaurus.config.js . | ||
COPY ./sidebars.js . | ||
ENTRYPOINT ["yarn", "serve"] | ||
EXPOSE 3000 | ||
SAVE IMAGE aztecprotocol/docs-server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters