diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-05 04:46:06 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-05 04:49:10 +0300 |
commit | f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64 (patch) | |
tree | 571fa60e27426ff76183c0dfeb54495d076091a6 /Dockerfile.project | |
parent | add LICENSE.txt (diff) | |
download | jekyll-docker-f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64.tar.gz jekyll-docker-f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64.zip |
get rid of unnecessary sudo in Docker
Diffstat (limited to 'Dockerfile.project')
-rw-r--r-- | Dockerfile.project | 2 |
1 files changed, 1 insertions, 1 deletions
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 |