Changeset 0.17.2 (#77)
This commit is contained in:
@@ -30,7 +30,15 @@ RUN npm pack marked@16.3.0 dompurify@3.2.4 mermaid@11.4.1 katex@0.16.11 2>/dev/n
|
||||
cp -r /tmp/package/dist/fonts/* /vendor/katex/fonts/ && \
|
||||
rm -rf /tmp/package /tmp/*.tgz
|
||||
|
||||
# Stage 2: nginx + entrypoint
|
||||
# Stage 2: CM6 editor bundle (esbuild → single IIFE)
|
||||
FROM node:20-alpine AS cm6-build
|
||||
WORKDIR /build
|
||||
COPY src/editor/ /build/src/editor/
|
||||
COPY scripts/build-editor.sh /build/scripts/build-editor.sh
|
||||
RUN cd /build/src/editor && npm ci --loglevel=warn
|
||||
RUN sh /build/scripts/build-editor.sh /build/dist
|
||||
|
||||
# Stage 3: nginx + entrypoint
|
||||
FROM nginx:1-alpine
|
||||
|
||||
# Remove default config — entrypoint generates it
|
||||
@@ -38,6 +46,7 @@ RUN rm -f /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY src/ /usr/share/nginx/html/
|
||||
COPY --from=vendor /vendor/ /usr/share/nginx/html/vendor/
|
||||
COPY --from=cm6-build /build/dist/ /usr/share/nginx/html/vendor/codemirror/
|
||||
COPY VERSION /VERSION
|
||||
COPY docker-entrypoint-fe.sh /docker-entrypoint-fe.sh
|
||||
RUN chmod +x /docker-entrypoint-fe.sh
|
||||
|
||||
Reference in New Issue
Block a user