pidgin/nest
Clone
Summary
Browse
Changes
Graph
Remove mermaid.js from footer and theme.
2020-08-20, Elliott Sales de Andrade
136c099f1388
Remove mermaid.js from footer and theme.
It is not used anywhere, and maybe should only be loaded if we actually do any mermaid diagrams.
This cuts down front page no-cache load from 1.71 MB to 914.43 kB.
Testing Done:
Loaded the front page. Also, searched for use of the mermaid shortcode, which was non-existent.
Reviewed at https://reviews.imfreedom.org/r/75/
#####################################################################
# run the hugo build
#####################################################################
FROM
debian:bullseye
as
hugo-build
RUN
set
-ex
&&
\
apt-get
update
&&
\
apt-get
install
-y
hugo
&&
\
apt-get
clean
&&
\
rm
-rf
/var/lib/apt/lists
ARG
BUILD_NAME
ARG
BUILD_DATE
ARG
COMMIT
COPY
hugo
/nest/hugo
RUN
hugo
-s
/nest/hugo
-d
/nest/public
&&
\
cp
/nest/public/post/index.xml
/nest/public/rss.xml
#####################################################################
# setup up our node environment
#####################################################################
FROM
node:10-buster-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
ENV
GOSERVE_404_PAGE
=
"/html/404.html"
COPY
--from
=
node-build
/nest/public
/html/
EXPOSE
3000/tcp