first commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user