mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
add version information
This commit is contained in:
parent
08615fe9f6
commit
ea6a668a84
5 changed files with 72 additions and 4 deletions
|
@ -22,6 +22,10 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm i
|
|||
FROM node:current-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
ARG BUILDTIME
|
||||
ARG VERSION
|
||||
ARG REVISION
|
||||
|
||||
COPY --link --from=deps /app/node_modules ./node_modules/
|
||||
COPY . .
|
||||
|
||||
|
@ -29,7 +33,7 @@ RUN <<EOF
|
|||
set -xe
|
||||
yarn next telemetry disable
|
||||
mkdir config && echo '-' > config/settings.yaml
|
||||
npm run build
|
||||
NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
|
||||
EOF
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue