Aktualizacja Astro 5.0, Poprawka workflow

This commit is contained in:
dm
2025-11-20 21:43:35 +01:00
parent 1e5f2bc38a
commit 742dd280b6
4 changed files with 23 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
# ============================
# 1) BUILD STAGE
# ============================
FROM node:18-alpine AS builder
# ===========
# 1) BUILDER
# ===========
FROM node:20-alpine AS builder
WORKDIR /app
@@ -11,17 +11,17 @@ RUN npm install
COPY . .
RUN npm run build
# ============================
# 2) RUNTIME STAGE (alpine)
# ============================
FROM node:18-alpine
# ===========
# 2) RUNTIME
# ===========
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app /app
ENV NODE_ENV=production
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package*.json ./
EXPOSE 3000
CMD ["node", "dist/server/entry.mjs"]
CMD ["node", "./dist/server/entry.mjs"]