learnGitBranching Docker & Self-Hosted Deployment

GitHub

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!

33,866 stars JavaScript JavaScript 1 file ยท ~1,979 tokens
1. Pull Image (DOCKERHUB) docker pull pcottle/learnGitBranching:latest
2. Docker Run (1-Click Launch) docker run -d --name learngitbranching --restart always pcottle/learngitbranching:latest
3. Podman Run podman run -d --name learngitbranching --restart always pcottle/learngitbranching:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/pcottle/learngitbranching:latest
5. ORAS Pull (OCI Artifact) oras pull pcottle/learngitbranching:latest
Dockerfile
FROM node:20-alpine as build
WORKDIR "/src"

COPY package.json yarn.lock /src/
RUN yarn install --frozen-lockfile --ignore-scripts && \
	yarn cache clean
COPY . /src
RUN yarn build

FROM scratch AS export
WORKDIR /
COPY --from=build /src/build ./build
COPY --from=build /src/assets ./assets



FROM nginx:stable-alpine
COPY --from=export /build/index.html /usr/share/nginx/html/index.html
COPY --from=export /build /usr/share/nginx/html/