-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to pnpm it's much faster, uses less space on disk (no gigantic node_modules) and has a readable lock file * fixup CI for linting and building * more fixup * cleanup dockerfile
- Loading branch information
Showing
8 changed files
with
4,284 additions
and
5,778 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
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,19 +1,23 @@ | ||
FROM node:20-alpine AS builder | ||
WORKDIR /usr/local/app | ||
RUN apk add pnpm | ||
|
||
COPY . . | ||
RUN npm ci && npm run build | ||
|
||
RUN rm -rf node_modules && \ | ||
pnpm install && pnpm run build | ||
|
||
FROM node:20-alpine | ||
|
||
WORKDIR /usr/local/app | ||
RUN apk add pnpm | ||
|
||
COPY --from=builder /usr/local/app/dist ./dist | ||
COPY package*.json server.js ./ | ||
|
||
RUN npm install --ignore-scripts --save-exact express vite-express | ||
RUN pnpm install --ignore-scripts vite-express | ||
|
||
ENV PORT=8080 | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["sh", "-c", "./dist/vite-envs.sh && npm run prod"] | ||
ENTRYPOINT ["sh", "-c", "./dist/vite-envs.sh && npm run prod"] |
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
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
nodejs | ||
nodePackages.nodemon | ||
nodePackages.typescript-language-server | ||
pnpm | ||
pandoc | ||
]; | ||
}; | ||
|
Oops, something went wrong.