feat: supply drop version during release build

This commit is contained in:
Huskydog9988
2025-05-29 13:52:32 -04:00
parent 15806a3c9f
commit 233324d6fb
3 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
# Unified deps builder
FROM node:lts-alpine AS deps
WORKDIR /app
@ -12,10 +14,15 @@ WORKDIR /app
ENV NODE_ENV=production
ENV NUXT_TELEMETRY_DISABLED=1
# add git so drop can determine its git ref at build
RUN apk add git
# copy deps and rest of project files
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ARG BUILD_DROP_VERSION="v0.0.0-unknown.1"
# build
RUN yarn postinstall
RUN yarn build