Vendored Augani/openreel-video (MIT) into services/editor and wired it to the MAM. Editor runs as its own container on port 47435. Library assets pull in via ?asset=<uuid>; render exports route back via POST /api/v1/upload/simple. Sidebar Editor link on every page; Edit button on every preview modal. See services/editor/INTEGRATION.md for the patch map.
19 lines
737 B
Docker
19 lines
737 B
Docker
# syntax=docker/dockerfile:1.6
|
|
FROM node:20-alpine AS builder
|
|
RUN apk add --no-cache python3 make g++ git bash
|
|
RUN corepack enable && corepack prepare pnpm@9.7.0 --activate
|
|
WORKDIR /build
|
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json tsconfig.base.json mediabunny.d.ts ./
|
|
COPY apps ./apps
|
|
COPY packages ./packages
|
|
RUN pnpm install --frozen-lockfile=false
|
|
RUN pnpm build:wasm || echo "no wasm build step, continuing"
|
|
RUN pnpm --filter @openreel/web build
|
|
RUN ls -la apps/web/dist
|
|
|
|
FROM nginx:alpine AS runtime
|
|
RUN rm -rf /usr/share/nginx/html/* /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /build/apps/web/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|