docker-compose and actions
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -9,12 +9,10 @@ WORKDIR /app
|
||||
COPY resume.json .
|
||||
|
||||
# Install theme and generate HTML using its built-in CLI
|
||||
RUN npx jsonresume-theme-even < resume.json > resume.html
|
||||
RUN mkdir -p www && npx jsonresume-theme-even < resume.json > www/index.html
|
||||
|
||||
# Final minimal image with just the HTML
|
||||
FROM alpine:latest
|
||||
WORKDIR /output
|
||||
COPY --from=builder /app/resume.html .
|
||||
# Serve with nginx
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/www /usr/share/nginx/html
|
||||
|
||||
# Default command outputs HTML to stdout
|
||||
CMD ["cat", "resume.html"]
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user