Breaking changes
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 33s

This commit is contained in:
Clemens Hering
2025-11-10 21:10:31 +01:00
parent e9a52787ce
commit 9fd3df83e7
16 changed files with 259 additions and 218 deletions

26
Containerfile.old Normal file
View File

@@ -0,0 +1,26 @@
# Multi-stage build for Astro static site
FROM node:22-alpine AS builder
WORKDIR /app
# Install deps
COPY package*.json ./
RUN npm ci || npm install
# Copy sources and build static output
COPY . .
RUN npm run build
# ---- Runtime stage ----
FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
ENV WEB_ROOT=/app/dist
ENV TZ=Europe/Berlin
ENV ASTRO_TELEMETRY_DISABLED=1
COPY --from=builder /app/dist /app/dist
COPY server.mjs /app/server.mjs
# Drop root: use the pre-created node user
USER node
#EXPOSE 3000
CMD ["node", "/app/server.mjs"]