From: Adam A.G. Shamblin Date: Thu, 11 Apr 2019 00:36:42 +0000 (-0600) Subject: Update Dockerfile to build content. X-Git-Url: https://git.vexinglabs.com/?a=commitdiff_plain;h=e042770f27abb325e09237b9e24efc351a1693fc;p=letters.git Update Dockerfile to build content. --- 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/