Library for Derive Macros and impl IntoResponse trait
This commit is contained in:
@ -2,13 +2,13 @@
|
||||
# builds the project, and then copies the built binary to a new image.
|
||||
|
||||
FROM rust:1.79 as build
|
||||
LABEL authors="Martin Berg Alstad"
|
||||
|
||||
RUN USER=root cargo new --bin simplify_truths
|
||||
WORKDIR /simplify_truths
|
||||
|
||||
COPY ./Cargo.lock ./Cargo.lock
|
||||
COPY ./Cargo.toml ./Cargo.toml
|
||||
COPY ./derive ./derive
|
||||
|
||||
# this build step will cache your dependencies
|
||||
RUN cargo build --release
|
||||
@ -29,6 +29,7 @@ RUN USER=root npm install -g @typespec/compiler && npm install -g @redocly/cli
|
||||
RUN npm run tsp-compile && npm run redoc-build
|
||||
|
||||
FROM debian
|
||||
LABEL authors="Martin Berg Alstad"
|
||||
|
||||
# copy the build artifact from the build stage
|
||||
COPY --from=build /simplify_truths/target/release/simplify_truths .
|
||||
|
Reference in New Issue
Block a user