From 8a13ff2c6821643e8df08cc0d7731e4b938e9edb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 May 2020 02:07:32 +0300 Subject: enable out-of-tree builds This directory must not be a subdirectory of the Jekyll project anymore. The hacks I had to put in place for this will be documented in the next commit. --- Dockerfile.project | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile.project (limited to 'Dockerfile.project') diff --git a/Dockerfile.project b/Dockerfile.project new file mode 100644 index 0000000..fd74035 --- /dev/null +++ b/Dockerfile.project @@ -0,0 +1,10 @@ +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