Containerized version of gabrielecirulli/2048, served via nginx:alpine and published to the GitHub Container Registry on every push to main.
ghcr.io/JakePeralta7/2048
# Pull the latest image
docker pull ghcr.io/JakePeralta7/2048:latest
# Run locally on port 8080
docker run -p 8080:80 ghcr.io/JakePeralta7/2048:latestThen open http://localhost:8080 in your browser.
The Dockerfile uses a two-stage build:
- Stage 1 (
alpine+git) — shallow-clones the upstreamgabrielecirulli/2048repository. - Stage 2 (
nginx:alpine) — copies only the static assets into the nginx document root and applies the custom nginx.conf.
The final image is ~10–15 MB and contains no build tooling.
The workflow runs on every push to main and on manual dispatch. It:
- Builds for
linux/amd64andlinux/arm64via Docker Buildx. - Pushes two tags to GHCR:
latestand a short SHA (sha-<commit>). - Uses the built-in
GITHUB_TOKEN— no extra secrets required.