fix: use explicit node version for docusaurus build

pull/176/head
Boaz Poolman 2025-03-17 09:19:51 +01:00
parent 8c839138f6
commit c2dafa17c4
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# 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 as base FROM node:18-alpine3.18 as base
## Disable colour output from yarn to make logs easier to read. ## Disable colour output from yarn to make logs easier to read.
ENV FORCE_COLOR=0 ENV FORCE_COLOR=0
## Enable corepack. ## Enable corepack.
@ -26,4 +26,4 @@ FROM prod as serve
## Expose the port that Docusaurus will run on. ## Expose the port that Docusaurus will run on.
EXPOSE 3000 EXPOSE 3000
## Run the production server. ## Run the production server.
CMD ["yarn", "serve", "--host", "0.0.0.0", "--no-open"] CMD ["yarn", "serve", "--host", "0.0.0.0", "--no-open"]