Files
resume/Dockerfile
2025-12-08 11:50:36 -06:00

21 lines
481 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 npx jsonresume-theme-even < resume.json > resume.html
# Final minimal image with just the HTML
FROM alpine:latest
WORKDIR /output
COPY --from=builder /app/resume.html .
# Default command outputs HTML to stdout
CMD ["cat", "resume.html"]