imfreedom/www.imfreedom.org

Stop using --verbose as hugo deprecated it
default tip
4 months ago, Gary Kramlich
d9eeec8c7e11
Stop using --verbose as hugo deprecated it

WARN deprecated: --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info

Testing Done:
Ran `npm run hugo` and `npm run hugo:server` and verified the warning was gone.

Reviewed at https://reviews.imfreedom.org/r/2881/
#####################################################################
# 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