Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-element-call-docker-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sable: patch
---

Fix Docker builds failing after the element-call submodule was introduced.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## Element Call embedded build
FROM --platform=$BUILDPLATFORM node:24.13.1-alpine AS element-call-builder

RUN apk add --no-cache git

WORKDIR /element-call

ARG ELEMENT_CALL_COMMIT=ecef381c246c177af28b8c99c5076da19878a136
RUN git init && \
git remote add origin https://github.com/melogale/element-call.git && \
git fetch --depth=1 origin ${ELEMENT_CALL_COMMIT} && \
git checkout FETCH_HEAD

RUN corepack enable && yarn install && yarn build:embedded

## Builder
FROM --platform=$BUILDPLATFORM node:24.13.1-alpine AS builder

Expand All @@ -8,6 +23,10 @@ ARG VITE_IS_RELEASE_TAG=false
ENV VITE_BUILD_HASH=$VITE_BUILD_HASH
ENV VITE_IS_RELEASE_TAG=$VITE_IS_RELEASE_TAG

# Copy the pre-built element-call embedded package so npm ci can resolve the
# file: dependency and vite can find the dist/ assets to copy.
COPY --from=element-call-builder /element-call/embedded/web /src/element-call/embedded/web

COPY .npmrc package.json package-lock.json /src/
RUN npm ci --ignore-scripts
COPY . /src/
Expand Down
Loading