diff --git a/Dockerfile b/Dockerfile index 71b3b3c..224c9fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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