Copy package.json into Docker runtime image so APP_VERSION reads correctly; v1.1.27
package.json was missing from the runtime stage, causing readPackageVersion() to throw and fall back to 'unknown'. The git commit hash (from COMMIT_SHA env) was the only identifier shown. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,7 @@ ENV COMMIT_SHA=${COMMIT_SHA}
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
COPY package.json ./package.json
|
||||
COPY dist ./dist
|
||||
COPY server.js ./server.js
|
||||
COPY server/ ./server/
|
||||
|
||||
Reference in New Issue
Block a user