Use user rust
This commit is contained in:
parent
c50813409a
commit
97b4d087a8
@ -16,10 +16,9 @@ RUN ./build.sh
|
||||
|
||||
FROM ekidd/rust-musl-builder:stable as backend
|
||||
|
||||
USER rust
|
||||
# create new cargo project
|
||||
RUN cargo new --bin gitache
|
||||
RUN cargo new --lib time-cache
|
||||
RUN USER=rust cargo new --bin gitache
|
||||
RUN USER=rust cargo new --lib time-cache
|
||||
WORKDIR /home/rust/src/gitache
|
||||
# copy build config
|
||||
COPY --chown=rust ./backend/Cargo.lock ./gitache/Cargo.lock
|
||||
|
Loading…
Reference in New Issue
Block a user