update cargo command

Co-authored-by: Pim <pimlie@hotmail.com>
This commit is contained in:
Vivek 2024-10-01 22:22:28 -07:00 committed by Vivek Revankar
parent 8d3afc7461
commit 25b527ec3f

View file

@ -12,7 +12,7 @@ WORKDIR /redlib
# download (most) dependencies in their own layer
COPY Cargo.lock Cargo.toml ./
RUN mkdir src && echo "fn main() { panic!(\"why am i running?\") }" > src/main.rs
RUN cargo build --release --locked --bin redlib
RUN cargo build --release --locked
RUN rm ./src/main.rs && rmdir ./src
# copy the source and build the redlib binary