diff --git a/Dockerfile b/Dockerfile index 77c12ac..8cfe3a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,19 @@ +# builder FROM rust:1.70 as builder WORKDIR /usr/src/breeze COPY . . -RUN [ "cargo", "install", "--path", "." ] +RUN cargo install --path . +# runner FROM debian:bullseye-slim + +RUN apt-get update && rm -rf /var/lib/apt/lists/* + COPY --from=builder /usr/local/cargo/bin/breeze /usr/local/bin/breeze +RUN useradd -m runner +USER runner + +EXPOSE 8000 CMD [ "breeze" ]