iksnae / actual-intelligence

A practical, non-technical guide to using AI tools like ChatGPT in everyday life
MIT License
0 stars 0 forks source link

Add Docker image configuration for book builder #37

Closed khaos-codi closed 3 months ago

khaos-codi commented 3 months ago

Fix for Book Build Workflow

This PR fixes the build workflow by adding a Dockerfile and a new GitHub Actions workflow to build and push the Docker image.

What's included:

  1. A Dockerfile that installs all necessary dependencies for building the book:

    • Node.js and npm
    • Pandoc
    • XeLaTeX (for PDF generation)
    • Calibre (for MOBI conversion)
    • Other build tools
  2. A GitHub Actions workflow file (docker-build.yml) to build and push the Docker image to GitHub Container Registry.

  3. Documentation about the Docker image in docker/README.md.

How to use:

  1. Merge this PR
  2. The Docker build workflow will automatically run, creating the Docker image at ghcr.io/iksnae/book-builder:latest
  3. Once the image is built, the book build workflow should work correctly

This fixes the "manifest unknown" error that was occurring because the Docker image wasn't found in the registry.