* chore(deps-dev): bump gatsby and gatsby-plugin-catch-links Bumps [gatsby](https://github.com/gatsbyjs/gatsby) and [gatsby-plugin-catch-links](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-catch-links). These dependencies needed to be updated together. Updates `gatsby` from 3.14.5 to 4.1.0 - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/compare/gatsby@3.14.5...gatsby@4.1.0) Updates `gatsby-plugin-catch-links` from 3.14.0 to 4.1.0 - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-catch-links/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-catch-links@4.1.0/packages/gatsby-plugin-catch-links) --- updated-dependencies: - dependency-name: gatsby dependency-type: direct:development update-type: version-update:semver-major - dependency-name: gatsby-plugin-catch-links dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * docker: include tools needed by node-gyp Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
32 lines
795 B
Docker
32 lines
795 B
Docker
FROM node:14-alpine AS Builder
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
RUN mkdir /usr/src/app/private
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json package-lock.json /usr/src/app/
|
|
# Without the badge-maker package.json and CLI script in place, `npm ci` will fail.
|
|
COPY badge-maker /usr/src/app/badge-maker/
|
|
|
|
RUN apk add python3 make g++
|
|
RUN npm install -g "npm@>=7"
|
|
# We need dev deps to build the front end. We don't need Cypress, though.
|
|
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
|
|
|
|
COPY . /usr/src/app
|
|
RUN npm run build
|
|
RUN npm prune --production
|
|
RUN npm cache clean --force
|
|
|
|
# Use multi-stage build to reduce size
|
|
FROM node:14-alpine
|
|
# Run the server using production configs.
|
|
ENV NODE_ENV production
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY --from=Builder /usr/src/app /usr/src/app
|
|
|
|
CMD node server
|
|
|
|
EXPOSE 80
|