From a7c724d786969a35856d38720ea833c2b1ffbbb9 Mon Sep 17 00:00:00 2001 From: Jeppe Ernst Date: Thu, 2 Jan 2020 23:07:32 +0100 Subject: [PATCH] changing build destination to persist _site dir --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0bbe0d..cfe7675 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ FROM jekyll/jekyll:3.7 AS jekyll -#ADD ./.gem-cache/bundle /usr/local/bundle ADD . /srv/jekyll -RUN jekyll build --strict_front_matter -RUN ls /srv/jekyll +RUN jekyll build --destination /tmp/_site --strict_front_matter FROM php:7.4.1-apache RUN a2enmod rewrite -COPY --from=jekyll /srv/jekyll/_site /var/www/html \ No newline at end of file +COPY --from=jekyll /tmp/_site /var/www/html \ No newline at end of file