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
|
FROM ekidd/rust-musl-builder:stable as backend
|
||||||
|
|
||||||
USER rust
|
|
||||||
# create new cargo project
|
# create new cargo project
|
||||||
RUN cargo new --bin gitache
|
RUN USER=rust cargo new --bin gitache
|
||||||
RUN cargo new --lib time-cache
|
RUN USER=rust cargo new --lib time-cache
|
||||||
WORKDIR /home/rust/src/gitache
|
WORKDIR /home/rust/src/gitache
|
||||||
# copy build config
|
# copy build config
|
||||||
COPY --chown=rust ./backend/Cargo.lock ./gitache/Cargo.lock
|
COPY --chown=rust ./backend/Cargo.lock ./gitache/Cargo.lock
|
||||||
|
Loading…
Reference in New Issue
Block a user