fix uploads being owned by root + other minor changes

This commit is contained in:
minish 2023-06-11 03:46:52 +00:00 committed by minish
parent b1bee30e23
commit 9fdc2345f9
1 changed files with 10 additions and 1 deletions

View File

@ -1,10 +1,19 @@
# builder
FROM rust:1.70 as builder FROM rust:1.70 as builder
WORKDIR /usr/src/breeze WORKDIR /usr/src/breeze
COPY . . COPY . .
RUN [ "cargo", "install", "--path", "." ] RUN cargo install --path .
# runner
FROM debian:bullseye-slim 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 COPY --from=builder /usr/local/cargo/bin/breeze /usr/local/bin/breeze
RUN useradd -m runner
USER runner
EXPOSE 8000
CMD [ "breeze" ] CMD [ "breeze" ]