Files
resume/Dockerfile
Phillip Tarrant fab9318d84
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
docker-compose and actions
2025-12-08 11:58:38 -06:00

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