fix(docs): remove corepack from docusaurus image build that is not available in latest Node

This commit is contained in:
Pasha Sviderski
2026-11-06 21:06:51 +10:00
parent 24b4837d08
commit ffd93096f1
+2 -4
View File
@@ -1,10 +1,8 @@
# Stage 1: Base image. # Stage 1: Base image.
## Start with a base image containing NodeJS so we can build Docusaurus. ## Start with a base image containing NodeJS so we can build Docusaurus.
FROM node:lts-alpine AS base FROM node:lts-alpine AS base
## Disable colour output from yarn to make logs easier to read. ## Disable colour output to make logs easier to read.
ENV FORCE_COLOR=0 ENV FORCE_COLOR=0
## Enable corepack.
RUN corepack enable
## Set the working directory to `/opt/docusaurus`. ## Set the working directory to `/opt/docusaurus`.
WORKDIR /opt/docusaurus WORKDIR /opt/docusaurus
@@ -14,7 +12,7 @@ FROM base AS prod
WORKDIR /opt/docusaurus WORKDIR /opt/docusaurus
## Copy over the source code. ## Copy over the source code.
COPY . /opt/docusaurus/ COPY . /opt/docusaurus/
## Install dependencies with `--immutable` to ensure reproducibility. ## Install dependencies from the lockfile to ensure reproducibility.
RUN npm ci RUN npm ci
## Build the static site. ## Build the static site.
RUN npm run build RUN npm run build