You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
352 B

FROM rust:1.56 as build
WORKDIR /senseid
# copy your source tree
COPY . .
RUN rustup component add rustfmt
RUN cargo build --verbose --release
# our final base
FROM debian:buster-slim
# copy the build artifact from the build stage
COPY --from=build /senseid/target/release/senseid .
# set the startup command to run your binary
CMD ["./senseid"]