Skip to content

JakePeralta7/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048 — Docker Container

Containerized version of gabrielecirulli/2048, served via nginx:alpine and published to the GitHub Container Registry on every push to main.

Image

ghcr.io/JakePeralta7/2048

Usage

# 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:latest

Then open http://localhost:8080 in your browser.

How it works

The Dockerfile uses a two-stage build:

  1. Stage 1 (alpine + git) — shallow-clones the upstream gabrielecirulli/2048 repository.
  2. 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.

CI/CD

The workflow runs on every push to main and on manual dispatch. It:

  • Builds for linux/amd64 and linux/arm64 via Docker Buildx.
  • Pushes two tags to GHCR: latest and a short SHA (sha-<commit>).
  • Uses the built-in GITHUB_TOKEN — no extra secrets required.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors