aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile.project
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.project')
-rw-r--r--Dockerfile.project10
1 files changed, 10 insertions, 0 deletions
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