Update dependencies and enhance package-lock.json

This commit updates multiple dependencies within `package-lock.json`, including upgrades for Astro, @astrojs packages, and various Sharp components. Additionally, it introduces new optional dependencies and enforces compatibility with Node 18 and higher in certain components.
This commit is contained in:
2025-11-08 15:59:10 +01:00
parent 03671a4d3e
commit a5bdf7b4f5
7 changed files with 607 additions and 473 deletions

View File

@ -3,23 +3,27 @@ FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm install
COPY ../backup/backup .
COPY . .
RUN npm run build
FROM node:20-alpine AS production
ENV NODE_ENV=production
WORKDIR /app
RUN npm install -g serve
# Copy built app and minimal runtime files
COPY --from=build /app/dist /app/dist
COPY --from=build /app/package*.json /app/
COPY --from=build /app/dist /app
RUN npm pkg delete devDependencies || true
EXPOSE 3000
CMD ["serve", "-s", ".", "-l", "3000"]
# Run Astro server entry (node adapter standalone)
CMD ["node", "dist/server/entry.mjs"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:3000/ || exit 1