Dockerfile: clone patched emdash from gitea instead of using npm
Patches visual editor image upload fix from: https://git.moreminimore.com/kunthawat/emdash-patch-imageupload.git
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
FROM node:22-alpine AS deps
|
||||
|
||||
RUN apk add --no-cache python3 make g++ sqlite
|
||||
RUN apk add --no-cache python3 make g++ sqlite git
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Clone patched emdash source
|
||||
RUN git clone --depth=1 https://git.moreminimore.com/kunthawat/emdash-patch-imageupload.git emdash-patch
|
||||
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN corepack enable && corepack prepare pnpm@9.0.0 --activate
|
||||
RUN pnpm install
|
||||
@@ -12,6 +15,9 @@ FROM deps AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy patched emdash into node_modules
|
||||
COPY --from=deps /app/emdash-patch /app/node_modules/emdash
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user