--- a/Dockerfile Sat May 04 05:08:02 2019 -0500
+++ b/Dockerfile Tue May 28 03:03:30 2019 +0100
@@ -1,26 +1,33 @@
-FROM debian:buster as build
+##################################################################### +#####################################################################
- apt-get install -y hugo npm && \
- npm i -g npm@6.4.1 && \
- rm -rf /var/lib/apt/lists
+FROM debian:buster as hugo-build + apt-get install -y hugo && \ + rm -rf /var/lib/apt/lists +RUN hugo -s /nest/hugo -d /nest/public -COPY package-lock.json package.json /nest/
+##################################################################### +# setup up our node environment +#####################################################################
- npm ci --production && \
- npm cache clean --force
+FROM node:10-stretch-slim as node-build +COPY package-lock.json package.json ./ +RUN npm ci --production && \ + npm cache clean --force +COPY --from=hugo-build /nest/public public +RUN node tools/pre-prod.js -RUN hugo -s /nest/hugo -d /nest/public && \
- node /nest/tools/pre-prod.js
+##################################################################### +# finally package everything up with rwgrim/goserve +#####################################################################
-COPY --from=build /nest/public /html
+COPY --from=node-build /nest/public /html/