Update dockerfile to correct locations

This commit is contained in:
Chris Jean-Marie 2022-03-14 17:19:33 -04:00
parent bbc59a5ea1
commit bd45c5da52
1 changed files with 7 additions and 6 deletions

View File

@ -1,16 +1,17 @@
FROM rust:1.43 as builder
FROM rust:1.59 as builder
RUN USER=root cargo new --bin rust-docker-web
WORKDIR ./rust-docker-web
RUN USER=root cargo new --bin jean-marie
WORKDIR /jean-marie
COPY ./Cargo.toml ./Cargo.toml
RUN cargo build --release
RUN rm src/*.rs
ADD . ./
RUN rm ./target/release/deps/rust_docker_web*
RUN rm ./target/release/deps/jean_marie*
RUN cargo build --release
FROM debian:buster-slim
ARG APP=/usr/src/app
COPY --from=builder /jean-marie/target/release/jean-marie .
CMD ["./jean-marie"]