mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-20 19:49:49 +00:00
Chore: migrate to pnpm only (#4907)
This commit is contained in:
parent
bb5cb36491
commit
1f282a1a93
5 changed files with 8 additions and 8772 deletions
|
@ -20,6 +20,8 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm i
|
|||
FROM docker.io/node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir config
|
||||
|
||||
ARG BUILDTIME
|
||||
ARG VERSION
|
||||
ARG REVISION
|
||||
|
@ -28,9 +30,9 @@ COPY --link --from=deps /app/node_modules ./node_modules/
|
|||
COPY . .
|
||||
|
||||
SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]
|
||||
RUN npm run telemetry \
|
||||
&& mkdir config \
|
||||
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
|
||||
RUN npm install -g pnpm \
|
||||
&& pnpm run telemetry \
|
||||
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION pnpm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM docker.io/node:22-alpine AS runner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue