Szablon witryny, docker i workflow gitea

This commit is contained in:
dm
2025-11-20 21:22:37 +01:00
commit 1e5f2bc38a
30 changed files with 601 additions and 0 deletions

27
Dockerfile Normal file
View File

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