4.0.1 - fixes

This commit is contained in:
2026-05-02 19:44:45 +12:00
parent b0bb692972
commit 07c754da12
34 changed files with 497 additions and 233 deletions
+9
View File
@@ -1,4 +1,7 @@
ARG APP_VERSION=4.0.1
FROM node:22-alpine AS builder
ARG APP_VERSION
WORKDIR /app
@@ -6,16 +9,22 @@ COPY package.json ./
RUN npm install
COPY . .
RUN node --experimental-strip-types scripts/export-homepage-content.mjs
RUN npm run build
FROM node:22-alpine AS runner
ARG APP_VERSION
WORKDIR /app
ENV NODE_ENV=production
ENV APP_VERSION=${APP_VERSION}
LABEL org.opencontainers.image.version="${APP_VERSION}"
COPY --from=builder /app/package.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/build ./build
COPY --from=builder /app/scripts/sync-homepage-content.mjs ./scripts/sync-homepage-content.mjs
COPY --from=builder /app/deploy-data/homepage-content.json ./deploy-data/homepage-content.json
EXPOSE 3000