aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-02 19:09:50 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-02 19:09:50 -0600
commit703536e0c7540c66d32a0e07af3cd7ee5b3ca346 (patch)
tree7e48d97f060aaf6a45a0c03e180533e753e5bb63
parentb835384ccbc9d3eb7fa6416b84b86c2525aa6943 (diff)
downloadboringcactus.com-703536e0c7540c66d32a0e07af3cd7ee5b3ca346.tar.gz
boringcactus.com-703536e0c7540c66d32a0e07af3cd7ee5b3ca346.zip
why do volumes work that way
-rw-r--r--Dockerfile4
1 files 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