fix uploads being owned by root + other minor changes
This commit is contained in:
parent
b1bee30e23
commit
9fdc2345f9
11
Dockerfile
11
Dockerfile
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in New Issue