Initial commit

This commit is contained in:
2026-04-08 19:49:15 +02:00
commit cd1ff989d0
52 changed files with 3277 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Stage 1: Build
FROM node:22-alpine AS builder
# Install Hugo
RUN apk add --no-cache hugo
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
# Copy package files first (for layer caching)
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Copy source files
COPY . .
# Build CSS and Hugo site
RUN pnpm build
# Stage 2: Production
FROM nginx:alpine
# Copy built site
COPY --from=builder /app/public /usr/share/nginx/html
# Copy nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]