-
Notifications
You must be signed in to change notification settings - Fork 214
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
Showing
9 changed files
with
57 additions
and
25 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"testing.automaticallyOpenPeekView": "never" | ||
} |
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
FROM node:20-bullseye AS build | ||
# Use an official Node runtime as a parent image | ||
FROM node:latest | ||
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
# Remove the node_modules folder to avoid wrong binaries | ||
RUN rm -rf node_modules | ||
|
||
# Install fontconfig | ||
COPY ./local-fonts /usr/share/fonts | ||
RUN apt-get update; apt-get install -y fontconfig | ||
RUN fc-cache -f -v | ||
|
||
RUN corepack enable | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install | ||
RUN NODE_OPTIONS=--max_old_space_size=4096 pnpm run build | ||
|
||
# Node alpine image to serve the generated static files | ||
FROM node:20-alpine AS serve | ||
|
||
WORKDIR /app | ||
COPY --from=build /app . | ||
|
||
EXPOSE 3000 | ||
CMD [ "node", "server/main.js"] |
Binary file not shown.
Binary file not shown.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export const ssr = false; | ||
export const prerender = false; |
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