Skip to content

feat: add Dockerfile and CI workflow for Docker image publishing#3

Open
joelgaria wants to merge 1 commit intoPAPAMICA:mainfrom
joelgaria:feat/add-dockerfile-and-ci
Open

feat: add Dockerfile and CI workflow for Docker image publishing#3
joelgaria wants to merge 1 commit intoPAPAMICA:mainfrom
joelgaria:feat/add-dockerfile-and-ci

Conversation

@joelgaria
Copy link
Copy Markdown

What this PR does

Adds Docker support to make the project deployable on Kubernetes
and other container environments.

Changes

  • Dockerfile — multi-stage build, non-root user (UID 1001),
    dumb-init as PID 1, ca-certificates for HTTPS payload fetching
  • .dockerignore — excludes unnecessary files from the image
  • .github/workflows/docker.yml — builds and pushes multi-arch
    image (amd64/arm64) to GHCR on every push to main and on tags,
    includes Trivy vulnerability scanning

Technical notes

  • node:22-slim instead of Alpine: workerd requires glibc
  • wrangler@latest pinned at build time to fix a mkdtemp bug in 4.42.0
  • TMPDIR=/app/.wrangler-tmp to avoid noexec issues on /tmp

Tested locally on linux/arm64 and linux/amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant