blog/Dockerfile

10 lines
197 B
Docker

FROM node:14.3 as build
WORKDIR /app
COPY . ./
RUN yarn install -s --no-progress --prod
RUN yarn global add gatsby-cli
RUN npx gatsby build
FROM gatsbyjs/gatsby
COPY --from=build /app/public /pub