From e042770f27abb325e09237b9e24efc351a1693fc Mon Sep 17 00:00:00 2001 From: "Adam A.G. Shamblin" Date: Wed, 10 Apr 2019 18:36:42 -0600 Subject: [PATCH] Update Dockerfile to build content. --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 486ec6c..a74d73e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,8 @@ -FROM nginx +FROM python:3.7.3 +COPY . /build/ +WORKDIR /build/ +RUN pip install -r requirements.txt +RUN pelican content -COPY output/ /usr/share/nginx/html/ +FROM nginx +COPY --from=0 /build/output/ /usr/share/nginx/html/ -- 2.39.5