rust parser working on local build. fix docker build
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user