From 13e7ccb5a5fc4b34ec8cf12fc373224837d8da49 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Wed, 4 Dec 2019 21:27:32 -0500 Subject: [PATCH] Fixes for new multi-stage dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a1385d..7777bc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM jekyll/jekyll as build -WORKDIR /src -COPY . /src -jekyll build +WORKDIR /srv/jekyll +COPY . /srv/jekyll +RUN jekyll build --trace && cp -a _site/ /tmp/site FROM nginx -COPY --from=build /src/_site /usr/share/nginx/html +COPY --from=build /tmp/site /usr/share/nginx/html