Skip to content

Commit ad93d8a

Browse files
committed
Use Node base image with Bun for package management
The oven/bun image has Node v24 which breaks Docusaurus SSR. Use node:18 as base and install Bun for faster package installs while keeping Node.js runtime for Docusaurus compatibility.
1 parent 46e1302 commit ad93d8a

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.gitlab-ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ variables:
2424
# Validate RSS/Atom feeds before building and deploying
2525
validate_feeds:
2626
stage: validate
27-
image: oven/bun:1.3
27+
image: node:18
28+
variables:
29+
BUN_INSTALL: "$HOME/.bun"
30+
PATH: "$HOME/.bun/bin:$PATH"
2831
before_script:
29-
# Install xmllint for XML validation
30-
- apt-get update && apt-get install -y libxml2-utils jq
31-
- bun install --frozen-lockfile
32+
# Install xmllint for XML validation and bun
33+
- apt-get update && apt-get install -y libxml2-utils jq unzip
34+
- curl -fsSL https://bun.sh/install | bash
35+
- $HOME/.bun/bin/bun install --frozen-lockfile
3236
script:
33-
- bash .ci/validate-feeds.sh
37+
- export PATH="$HOME/.bun/bin:$PATH" && bash .ci/validate-feeds.sh
3438
artifacts:
3539
when: on_failure
3640
paths:

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM oven/bun:1.3
1+
FROM node:18.20
22

33
ARG ARG_REACT_APP_API_SERVER
44
ENV REACT_APP_API_SERVER=$ARG_REACT_APP_API_SERVER
@@ -24,6 +24,11 @@ ENV UMAMI_WEBSITE_ID=$ARG_UMAMI_WEBSITE_ID
2424
ARG ARG_UMAMI_SCRIPT_URL
2525
ENV UMAMI_SCRIPT_URL=$ARG_UMAMI_SCRIPT_URL
2626

27+
# Install bun
28+
RUN curl -fsSL https://bun.sh/install | bash
29+
ENV BUN_INSTALL="/root/.bun"
30+
ENV PATH="$BUN_INSTALL/bin:$PATH"
31+
2732
WORKDIR /docs
2833

2934
COPY package.json ./

0 commit comments

Comments
 (0)