From 9fdc2345f99190cafd9df68aa887d108cb202443 Mon Sep 17 00:00:00 2001 From: minish Date: Sun, 11 Jun 2023 03:46:52 +0000 Subject: [PATCH] fix uploads being owned by root + other minor changes --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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" ]