All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
19 lines
415 B
Docker
19 lines
415 B
Docker
# Multi-stage build for JSON Resume HTML generation
|
|
# Uses jsonresume-theme-even for rendering
|
|
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy resume.json
|
|
COPY resume.json .
|
|
|
|
# Install theme and generate HTML using its built-in CLI
|
|
RUN mkdir -p www && npx jsonresume-theme-even < resume.json > www/index.html
|
|
|
|
# Serve with nginx
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/www /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|