working dockerfile

This commit is contained in:
Dean Chi
2023-08-31 13:38:21 -07:00
parent ec56f5be5c
commit ae5f513942

View File

@@ -3,13 +3,13 @@ FROM rust:bullseye as build
WORKDIR /src
RUN apt update && apt install -y ca-certificates pkg-config libssl-dev libclang-11-dev
RUN rustup update 1.67.0 && rustup default 1.67.0
COPY ./components/ordhook-cli /src/components/ordhook-cli
COPY ./components /src/components
WORKDIR /src/components/ordhook-cli
RUN mkdir /out
RUN cargo build --features release --release
RUN cp target/release/ordhook /out
FROM debian:bullseye-slim
FROM rust:slim-bullseye
RUN apt update && apt install -y ca-certificates libssl-dev
COPY --from=build /out/ /bin/
WORKDIR /workspace