Docker

Inferred Example - Docker is not used in the Shevky codebase. This guide shows a generic pattern for containerized static serving.

Multi-Stage Dockerfile

FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80

Build and Run

docker build -t my-shevky-site .
docker run -p 8080:80 my-shevky-site

The site is available at http://localhost:8080.

Related