Use user rust

This commit is contained in:
Valentin Brandl 2019-08-07 22:27:37 +02:00
parent c50813409a
commit 97b4d087a8
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -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