# Stage 1: Builder FROM node:slim AS builder WORKDIR /workspace # Copy Bulma Customizer source COPY docs/_react/bulma-customizer ./docs/_react/bulma-customizer # Install dependencies and build RUN npm ci --prefix ./docs/_react/bulma-customizer RUN npm run build --prefix ./docs/_react/bulma-customizer # Stage 2: Runtime FROM node:slim # Install a tiny static server to serve the built assets RUN npm i -g http-server WORKDIR /docs COPY --from=builder /workspace/docs /docs EXPOSE 8080 CMD ["http-server", ".", "-p", "8080"]
# Ignore version control and misc .git .gitignore # Node modules and logs node_modules bower_components npm-debug.log yarn-debug.log yarn-error.log # OS files .DS_Store # Common build outputs and caches dist build coverage .cache *.log # Documentation site assets are produced in the builder; the final image copies from builder # but we keep the host context lean by not shipping large docs assets docs/assets docs/_react/bulma-customizer/node_modules docs/_react/bulma-customizer/.cache
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the bulma-customizer directory inside docs WORKDIR /workspace/docs/_react/bulma-customizer # Install dependencies first COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./ RUN npm ci # Copy all source files and build COPY docs/_react/bulma-customizer/ ./ RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root inside the container WORKDIR /workspace # Copy only the package manifest first to install dependencies COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Then copy the rest of the bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build from the bulma-customizer directory WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root WORKDIR /workspace # Install dependencies for bulma-customizer first COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN bash -lc "cd docs/_react/bulma-customizer && npm ci" # Copy the full bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root WORKDIR /workspace # Install dependencies for bulma-customizer first (only package manifests) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Copy the full bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root WORKDIR /workspace # Install dependencies for bulma-customizer first (only package manifests) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Copy the full bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/bulma-customizer/index.html /usr/share/nginx/html/index.html COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/share/nginx/html/assets/javascript/bulma-customizer EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root WORKDIR /workspace # Install dependencies for bulma-customizer first (only package manifests) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Copy the full bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/bulma-customizer/index.html /usr/share/nginx/html/index.html COPY --from=builder /workspace/docs/_react/assets/javascript/bulma-customizer /usr/share/nginx/html/assets/javascript/bulma-customizer EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:slim AS builder # Work from the repository root WORKDIR /workspace # Install dependencies for bulma-customizer first (only package manifests) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Copy the full bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/bulma-customizer/index.html /usr/share/nginx/html/index.html COPY --from=builder /workspace/docs/_react/assets/javascript/bulma-customizer /usr/share/nginx/html/assets/javascript/bulma-customizer EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
# Git and OS junk .git .DS_Store Thumbs.db # Node modules and builds (do not ship local deps) node_modules bower_components build dist docs/assets # Logs and temp *.log *.tmp # Editor / IDE *.swp *.swo *
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:18-slim AS builder # Work from the bulma-customizer directory WORKDIR /workspace/docs/_react/bulma-customizer # Install dependencies first (package.json and package-lock.json) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./ RUN npm ci # Copy the rest of the bulma-customizer source COPY docs/_react/bulma-customizer/ ./ # Build the bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:18-slim AS builder # Work from the bulma-customizer directory WORKDIR /workspace/docs/_react/bulma-customizer # Install dependencies first (package.json and package-lock.json) COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./ RUN npm ci # Copy the rest of the bulma-customizer source COPY docs/_react/bulma-customizer/ ./ # Build the bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/bulma-customizer/index.html /usr/share/nginx/html/index.html COPY --from=builder /workspace/docs/_react/assets/javascript/bulma-customizer /usr/share/nginx/html/assets/javascript/bulma-customizer EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# Builder stage: install dependencies and build the Bulma Customizer FROM node:18-slim AS builder # Work from the bulma-customizer directory WORKDIR /workspace # Copy manifest first and install dependencies for bulma-customizer COPY docs/_react/bulma-customizer/package.json docs/_react/bulma-customizer/package-lock.json ./docs/_react/bulma-customizer/ RUN npm ci --prefix ./docs/_react/bulma-customizer # Copy the rest of the bulma-customizer source COPY docs/_react/bulma-customizer/ ./docs/_react/bulma-customizer/ # Build the bulma-customizer WORKDIR /workspace/docs/_react/bulma-customizer RUN npm run build # Runtime stage: serve the built static assets with nginx FROM nginx:alpine AS runtime # Copy the built assets from the builder stage COPY --from=builder /workspace/docs/_react/assets/javascript/bulma-customizer /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# syntax=docker/dockerfile:1 FROM node:18-slim AS builder WORKDIR /workspace COPY . . # Build the Bulma Customizer React app (Vite) WORKDIR /workspace/docs/_react/bulma-customizer RUN npm ci RUN npm run build FROM node:18-slim AS runtime WORKDIR /usr/app # Install a tiny static file server to serve the built assets RUN npm i -g http-server COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/app/bulma-customizer EXPOSE 8080 CMD ["http-server", "bulma-customizer", "-p", "8080", "-a", "0.0.0.0"]
# Ignore VCS and common temp files .git .gitignore # OS / IDE / editors .DS_Store *.swp *.swo # Node modules and build artifacts node_modules/ **/node_modules/ docs/_react/bulma-customizer/node_modules/ # Build outputs (the runtime only needs built assets) docs/assets/javascript/bulma-customizer/ docs/_react/bulma-customizer/dist/ # Logs and test artifacts *.log npm-debug.log* yarn-debug.log* yarn-error.log* coverage/ # IDEs .vscode/ .idea/
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# syntax=docker/dockerfile:1 FROM node:18-slim AS builder WORKDIR /workspace # Copy all repository contents into the builder image COPY . . # Install required build tools in case native modules are involved RUN apt-get update \ && apt-get install -y --no-install-recommends python3 make g++ bash \ && rm -rf /var/lib/apt/lists/* # Build the Bulma Customizer React app (Vite) WORKDIR /workspace/docs/_react/bulma-customizer RUN npm ci RUN npm run build FROM node:18-slim AS runtime WORKDIR /usr/app/bulma-customizer # Install a tiny static file server to serve the built assets RUN npm i -g http-server # Copy built assets and the index.html into runtime COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/app/bulma-customizer/assets/javascript/bulma-customizer COPY --from=builder /workspace/docs/_react/bulma-customizer/index.html /usr/app/bulma-customizer/index.html EXPOSE 8080 CMD ["http-server", ".", "-p", "8080", "-a", "0.0.0.0"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
# syntax=docker/dockerfile:1 FROM node:18-slim AS builder WORKDIR /workspace # Copy all repository contents into the builder image COPY . . # Install required build tools in case native modules are involved RUN apt-get update \ && apt-get install -y --no-install-recommends python3 make g++ bash \ && rm -rf /var/lib/apt/lists/* # Build the Bulma Customizer React app (Vite) WORKDIR /workspace/docs/_react/bulma-customizer RUN npm ci RUN npm run build FROM node:18-slim AS runtime WORKDIR /usr/app/bulma-customizer # Install a tiny static file server to serve the built assets RUN npm i -g http-server # Copy built assets into runtime COPY --from=builder /workspace/docs/assets/javascript/bulma-customizer /usr/app/bulma-customizer EXPOSE 8080 CMD ["http-server", ".", "-p", "8080", "-a", "0.0.0.0"]
ERROR: permission denied while trying to connect to the docker API at unix:///var/run/docker.sock