Aktualizacja Astro 5.0, Poprawka workflow
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user