domdomegg / aws-ses-v2-local

☁📬 A local version of Amazon Simple Email Service (AWS SES) supporting the V1 and V2 API
https://www.npmjs.com/package/aws-ses-v2-local
MIT License
50 stars 11 forks source link

Improve Docker Setup and Automate Image Release #29

Open DAcodedBEAT opened 2 months ago

DAcodedBEAT commented 2 months ago

Description

This PR refines the Docker setup and adds automation for releasing Docker images.

see: https://github.com/domdomegg/aws-ses-v2-local/issues/26

Changes

  1. .dockerignore:
    • Added to reduce Docker image size by excluding unnecessary files.
  2. GitHub Actions Workflow:
    • New workflow to automatically build and push Docker images to GitHub Container Registry on release.
  3. Dockerfile:
    • Switched to a multi-stage build for smaller images.
    • Uses a secure base image (distroless) and runs as a non-root user.
  4. docker-compose.example.yaml:
    • Updated to use the GitHub Container Registry image.
  5. package.json and package-lock.json:
    • Added Docker build and publish scripts.
    • Adjusted dependencies for production use.

Why

Testing

DAcodedBEAT commented 2 months ago

@domdomegg once you are good with this, I plan on updating dependencies. (figured that was out of scope of this PR)