From 97b4d087a8c0c08e74a80778dc5db45f5a69619c Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 7 Aug 2019 22:27:37 +0200 Subject: [PATCH] Use user `rust` --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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