-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change all references of npm * Cache pnpm modules * yeet package-lock.json
- Loading branch information
Showing
12 changed files
with
5,093 additions
and
8,514 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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ node_modules | |
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* | ||
package-lock.json |
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 @@ | ||
20.17.0 | ||
20.18.0 |
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,31 +1,41 @@ | ||
FROM node:20-alpine AS build | ||
ARG NODE_VERSION=20 | ||
ARG PNPM_VERSION=9.12.2 | ||
ARG ALPINE_VERSION=3.20 | ||
|
||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS build | ||
|
||
WORKDIR /app | ||
ENV DOCKER=true | ||
ENV PNPM_VERSION=${PNPM_VERSION} | ||
|
||
RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY pnpm-lock.yaml . | ||
COPY patches/ patches/ | ||
|
||
RUN npm ci | ||
RUN pnpm install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
RUN pnpm run build | ||
|
||
FROM node:20-alpine AS runtime | ||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS runtime | ||
|
||
WORKDIR /app | ||
ENV DOCKER=true | ||
ENV NODE_ENV=production | ||
ENV PNPM_VERSION=${PNPM_VERSION} | ||
|
||
RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm | ||
|
||
EXPOSE 3000 | ||
|
||
COPY --from=build /app/package.json . | ||
COPY --from=build /app/package-lock.json . | ||
COPY --from=build /app/pnpm-lock.yaml . | ||
COPY --from=build /app/patches/ patches/ | ||
COPY --from=build /app/build build/ | ||
|
||
RUN npm ci | ||
RUN pnpm install --frozen-lockfile | ||
|
||
CMD ["node","build/index.js"] |
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
Oops, something went wrong.