Skip to content

Commit 949bf22

Browse files
committed
Fix Dockerfile and CI for Bun compatibility
- Use specific Bun version (1.1.43-debian) for reproducible builds - Remove broken .cache -> node_modules move in Dockerfile - Simplify Dockerfile by removing unnecessary cache operations
1 parent e0e0a05 commit 949bf22

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variables:
2424
# Validate RSS/Atom feeds before building and deploying
2525
validate_feeds:
2626
stage: validate
27-
image: oven/bun:1.1
27+
image: oven/bun:1.1.43-debian
2828
before_script:
2929
# Install xmllint for XML validation
3030
- apt-get update && apt-get install -y libxml2-utils jq

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM oven/bun:1.1
1+
FROM oven/bun:1.1.43-debian
22

33
ARG ARG_REACT_APP_API_SERVER
44
ENV REACT_APP_API_SERVER=$ARG_REACT_APP_API_SERVER
@@ -26,14 +26,10 @@ ENV UMAMI_SCRIPT_URL=$ARG_UMAMI_SCRIPT_URL
2626

2727
WORKDIR /docs
2828

29-
COPY package.json ./
30-
COPY bun.lock ./
29+
COPY package.json bun.lock ./
3130
RUN bun install --frozen-lockfile
3231

3332
COPY . .
34-
# Make cache folder if not exists.
35-
RUN mkdir -p .cache
36-
RUN mv .cache node_modules
3733
RUN bun run build
3834

3935
EXPOSE 3000

0 commit comments

Comments
 (0)