mirror of
https://github.com/psviderski/uncloud.git
synced 2026-11-10 04:34:17 +00:00
fix(docs): remove corepack from docusaurus image build that is not available in latest Node
This commit is contained in:
+2
-4
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user