imfreedom/www.imfreedom.org

Update everything for Discourse

16 months ago, Gary Kramlich
a4501b4f5c1e
Update everything for Discourse

This includes saying that we shutdown the mailing lists which we haven't
actually done yet, but I don't want to have to come back and make another commit
when we do.

Testing Done:
Ran locally via `npm run hugo:server`

Reviewed at https://reviews.imfreedom.org/r/2153/
#####################################################################
# run the hugo build
#####################################################################
FROM debian:buster as hugo-build
RUN set -ex && \
apt-get update && \
apt-get install -y hugo && \
apt-get clean && \
rm -rf /var/lib/apt/lists
COPY hugo /nest/hugo
RUN hugo -s /nest/hugo -d /nest/public
#####################################################################
# setup up our node environment
#####################################################################
FROM node:10-stretch-slim as node-build
WORKDIR /nest/
COPY package-lock.json package.json ./
RUN npm ci --production && \
npm cache clean --force
COPY tools ./tools
COPY --from=hugo-build /nest/public public
RUN node tools/pre-prod.js
#####################################################################
# finally package everything up with rwgrim/goserve
#####################################################################
FROM rwgrim/goserve
COPY --from=node-build /nest/public /html/
EXPOSE 3000/tcp