rust parser working on local build. fix docker build

This commit is contained in:
ZockerKatze
2025-06-24 10:23:34 +02:00
parent 7e2ada529d
commit 5ad73485ce
10 changed files with 425 additions and 24 deletions

View File

@@ -1,3 +1,12 @@
# syntax=docker/dockerfile:1
FROM rust:latest as rust-build
WORKDIR /build
COPY ./markdown_backend ./markdown_backend
WORKDIR /build/markdown_backend
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get install -y musl-tools
RUN cargo build --release --target x86_64-unknown-linux-musl
FROM node:20
WORKDIR /app
@@ -8,6 +17,9 @@ RUN npm install
COPY . .
# Copy the Rust binary from the build stage
COPY --from=rust-build /build/markdown_backend/target/release/markdown_backend ./markdown_backend/target/release/markdown_backend
RUN npm run build
VOLUME ["/app/docker"]