From f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 May 2020 04:46:06 +0300 Subject: get rid of unnecessary sudo in Docker --- Dockerfile.project | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile.project') diff --git a/Dockerfile.project b/Dockerfile.project index fd74035..bae05e6 100644 --- a/Dockerfile.project +++ b/Dockerfile.project @@ -3,8 +3,8 @@ FROM jekyll_base ENV PROJECT_DIR="/project" RUN sudo mkdir -p -- "$PROJECT_DIR" && \ sudo chown -- "$JEKYLL_USER:$JEKYLL_USER" "$PROJECT_DIR" + COPY --chown="$JEKYLL_USER:$JEKYLL_USER" ["Gemfile", "Gemfile.lock", "$PROJECT_DIR/"] RUN make dependencies - COPY --chown="$JEKYLL_USER:$JEKYLL_USER" [".", "$PROJECT_DIR/"] CMD make jekyll/serve -- cgit v1.2.3