Skip to content

Comment on Shrinking my static site

Comments

If you're using multiple steps anyway, there's no need to use nginx base on every step.

    FROM nginx:1.17.10-alpine as npmpackages
    RUN apk add --update nodejs npm

Just do:
    FROM node:10
    RUN npm [...]

that is true, ill switch to that when i get around to it

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.