changing build destination to persist _site dir
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jeppe Ernst 2020-01-02 23:07:32 +01:00
parent 6307cf3105
commit a7c724d786
1 changed files with 2 additions and 4 deletions

View File

@ -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
COPY --from=jekyll /tmp/_site /var/www/html