fix: use explicit node version for docusaurus build
parent
8c839138f6
commit
c2dafa17c4
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Stage 1: Base image.
|
||||
## 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.
|
||||
ENV FORCE_COLOR=0
|
||||
## Enable corepack.
|
||||
|
@ -26,4 +26,4 @@ FROM prod as serve
|
|||
## Expose the port that Docusaurus will run on.
|
||||
EXPOSE 3000
|
||||
## Run the production server.
|
||||
CMD ["yarn", "serve", "--host", "0.0.0.0", "--no-open"]
|
||||
CMD ["yarn", "serve", "--host", "0.0.0.0", "--no-open"]
|
||||
|
|
Loading…
Reference in New Issue