aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile.project
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-05-05 04:46:06 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-05-05 04:49:10 +0300
commitf2fac1fb20b5bef73c75d56a2bedc2846a0c6e64 (patch)
tree571fa60e27426ff76183c0dfeb54495d076091a6 /Dockerfile.project
parentadd LICENSE.txt (diff)
downloadjekyll-docker-f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64.tar.gz
jekyll-docker-f2fac1fb20b5bef73c75d56a2bedc2846a0c6e64.zip
get rid of unnecessary sudo in Docker
Diffstat (limited to '')
-rw-r--r--Dockerfile.project2
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