-
-
Notifications
You must be signed in to change notification settings - Fork 54
Migrate docs to our template #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0f4a814
new docs site, migrated to pnpm and nx
AlemTuzlak 959eb76
remove nx
AlemTuzlak b6ba178
fix action
AlemTuzlak 68295fd
fix action
AlemTuzlak bd79571
test
AlemTuzlak 72c734a
test
AlemTuzlak 1719090
test
AlemTuzlak 5ae98e2
add .npmrc
AlemTuzlak 3585ce5
fix rc
AlemTuzlak c896715
fix deployment
AlemTuzlak 5bff360
fix deployment?
AlemTuzlak 3818da3
fix deployment?
AlemTuzlak 0cacdc4
fix
AlemTuzlak f5ce4d1
update dockerfile
AlemTuzlak 770059c
biome removed, updated pnpm version in dockerfile
68f4f4c
deployment fix?
e28a903
deployment fix?
09b7ba8
deployment fix?
872419f
deployment fix?
47e8a7b
deployment fix?
48c7d6f
deployment fix?
ca138d3
deployment fix?
ecf399c
deployment fix?
8383694
updates in yml, generate-docs, dockerfile
cef4ea9
updates in yml, generate-docs, dockerfile
bc80799
update package-json
4417aec
update package-json
4dd6148
UI tw fixes
b31f068
comments
b3a6614
small fix
3f6fc5d
small UI fix
3424bd9
UI fixes
a1735be
small comment in dockerfile
fbb4d7a
UI small fix
37dedc5
UI fixes
77649f1
small fix in docs
8a22ec1
docs update
AlemTuzlak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,51 +1,41 @@ | ||
|
|
||
| # syntax = docker/dockerfile:1.4 | ||
|
|
||
| # Base dependencies stage | ||
| ARG NODE_VERSION=22.17.0 | ||
| FROM node:${NODE_VERSION}-slim AS base | ||
|
|
||
| LABEL fly_launch_runtime="Node.js" | ||
|
|
||
| # Node.js app lives here | ||
| WORKDIR /app | ||
| ENV NODE_ENV=production | ||
|
|
||
| # Set production environment | ||
| ENV NODE_ENV="production" | ||
|
|
||
| # Install pnpm | ||
| ARG PNPM_VERSION=10.18.0 | ||
| RUN npm install -g pnpm@$PNPM_VERSION | ||
|
|
||
|
|
||
| # Throw-away build stage to reduce size of final image | ||
| # --- Build stage --- | ||
| FROM base AS build | ||
|
|
||
| # Install packages needed to build node modules | ||
| # System deps only if you have native modules; otherwise you can drop this | ||
| RUN apt-get update -qq && \ | ||
| apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 git | ||
| apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install node modules | ||
| # Install deps | ||
| COPY .npmrc package.json ./ | ||
| RUN pnpm install --prod=false | ||
|
|
||
| # Copy application code | ||
| # Copy the application (including the previously downloaded artifact under docs/) | ||
| COPY . . | ||
|
|
||
| # Build application | ||
| RUN pnpm run generate:docs | ||
| # IMPORTANT: we no longer generate docs here; they were provided by CI | ||
|
abrulic marked this conversation as resolved.
Outdated
|
||
| # Build the app (should read from docs/generated-docs/* and versions.ts that CI uploaded) | ||
| RUN pnpm run build | ||
|
|
||
| # Remove development dependencies | ||
| # Prune dev deps | ||
| RUN pnpm prune --prod | ||
|
|
||
|
|
||
| # Final stage for app image | ||
| # --- Runtime stage --- | ||
| FROM base | ||
|
|
||
| # Copy built application | ||
| COPY --from=build /app /app | ||
|
|
||
| # Start the server by default, this can be overwritten at runtime | ||
| EXPOSE 3000 | ||
| CMD [ "pnpm", "run", "start" ] | ||
| CMD ["pnpm","run","start"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.