react-fundamentals Docker & Self-Hosted Deployment

GitHub

Material for my React Fundamentals Workshop

5,312 stars TypeScript TypeScript 1 file ยท ~907 tokens #epicreact-dev#epicweb-dev#kcd-edu#react#workshop
1. Pull Image (DOCKERHUB) docker pull epicweb-dev/react-fundamentals:latest
2. Docker Run (1-Click Launch) docker run -d --name react-fundamentals --restart always epicweb-dev/react-fundamentals:latest
3. Podman Run podman run -d --name react-fundamentals --restart always epicweb-dev/react-fundamentals:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/epicweb-dev/react-fundamentals:latest
5. ORAS Pull (OCI Artifact) oras pull epicweb-dev/react-fundamentals:latest
epicshop/Dockerfile
FROM node:26-bookworm-slim as base

RUN apt-get update && apt-get install -y git

ENV EPICSHOP_GITHUB_REPO=https://github.com/epicweb-dev/react-fundamentals
ENV EPICSHOP_CONTEXT_CWD="/myapp/workshop-content"
ENV EPICSHOP_HOME_DIR="/myapp/.epicshop"
ENV EPICSHOP_DEPLOYED="true"
ENV EPICSHOP_DISABLE_WATCHER="true"
ENV FLY="true"
ENV PORT="8080"
ENV NODE_ENV="production"

WORKDIR /myapp

# Clone the workshop repo during build time, excluding database files
RUN git clone --depth 1 ${EPICSHOP_GITHUB_REPO} ${EPICSHOP_CONTEXT_CWD}

ADD . .

RUN npm install --omit=dev

RUN cd ${EPICSHOP_CONTEXT_CWD} && \
    npx epicshop warm

CMD cd ${EPICSHOP_CONTEXT_CWD} && \
    npx epicshop start