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 --from=deps /app/node_modules ./node_modules
|
||||||
|
|
||||||
|
COPY package.json ./package.json
|
||||||
COPY dist ./dist
|
COPY dist ./dist
|
||||||
COPY server.js ./server.js
|
COPY server.js ./server.js
|
||||||
COPY server/ ./server/
|
COPY server/ ./server/
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "siteforge",
|
"name": "siteforge",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.26",
|
"version": "1.1.27",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user