FROM node:24-trixie-slim RUN apt update && \ apt -y install git pkg-config bat python3.13 python3-setuptools python3-wheel jq && \ npm install -g http-server electron && \ corepack enable && \ rm -rf /var/apt/lists WORKDIR /build RUN git clone https://github.com/laurent22/joplin.git WORKDIR /build/joplin RUN yarn install --inline-builds --json | jq -r '"\(.indent) | \(.type) | \(.data)"' WORKDIR /build/joplin/packages/app-mobile && \ yarn web && \ mv web/dist /app && \ chown -R www-data:www-data /app USER www-data WORKDIR /app EXPOSE 8080 CMD ["http-server", "-p", "8080"]