mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-07-28 23:23:47 +00:00
fix
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
# 前端构建阶段
|
||||
FROM node:18 AS frontend-builder
|
||||
WORKDIR /app
|
||||
# 安装 patch 工具
|
||||
RUN apt-get update && apt-get install -y patch
|
||||
# 复制 excalidraw 子模块
|
||||
COPY excalidraw/ ./excalidraw/
|
||||
# 复制补丁文件
|
||||
COPY frontend.patch ./
|
||||
# 应用前端补丁
|
||||
RUN cd excalidraw && git apply ../frontend.patch
|
||||
RUN cd excalidraw && patch -p1 < ../frontend.patch
|
||||
# 构建前端
|
||||
RUN cd excalidraw && npm install && cd excalidraw-app && npm run build:app:docker
|
||||
|
||||
|
||||
Reference in New Issue
Block a user