new functions and fixes
This commit is contained in:
+10
@@ -1,3 +1,11 @@
|
||||
FROM python:3.14-slim AS browser-libs
|
||||
WORKDIR /app
|
||||
|
||||
ARG BROWSER_LIBS_REFRESH=manual
|
||||
COPY scripts/update_browser_libs.py ./scripts/update_browser_libs.py
|
||||
RUN echo "Browser library refresh: ${BROWSER_LIBS_REFRESH}" \
|
||||
&& python3 ./scripts/update_browser_libs.py --root /app --strict
|
||||
|
||||
FROM rust:slim-trixie AS builder
|
||||
WORKDIR /app
|
||||
|
||||
@@ -5,6 +13,8 @@ COPY Cargo.toml Cargo.lock ./
|
||||
COPY migrations ./migrations
|
||||
COPY src ./src
|
||||
COPY static ./static
|
||||
COPY --from=browser-libs /app/static/libs/mermaid ./static/libs/mermaid
|
||||
COPY --from=browser-libs /app/static/libs/highlight ./static/libs/highlight
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user