From 703536e0c7540c66d32a0e07af3cd7ee5b3ca346 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 2 Oct 2020 19:09:50 -0600 Subject: why do volumes work that way --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 731b784..cac9cee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM jekyll/jekyll AS build COPY . /srv/jekyll -RUN jekyll build +RUN jekyll build && cp -r /srv/jekyll/_site /var/jekyll_site FROM nginx -COPY --from=build /srv/jekyll/_site /usr/share/nginx/html +COPY --from=build /var/jekyll_site /usr/share/nginx/html -- cgit v1.2.3