From f63441c15da0a5b1b2e84999e10cc5d47c13ad4f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 19 Feb 2023 12:22:37 -0500 Subject: [PATCH] fix: Docker build --- Dockerfile.base | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.base b/Dockerfile.base index eafc7ade9..7391542ba 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -4,6 +4,7 @@ FROM node:16.14.2-alpine3.15 AS deps ARG APP_PATH WORKDIR $APP_PATH COPY ./package.json ./yarn.lock ./ +COPY ./patches ./patches RUN yarn install --no-optional --frozen-lockfile --network-timeout 1000000 && \ yarn cache clean diff --git a/package.json b/package.json index 5f567fe05..7d3f0c849 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "dev:watch": "NODE_ENV=development yarn concurrently -n backend,frontend \"yarn dev:backend\" \"yarn vite:dev\"", "lint": "eslint app server shared plugins", "prepare": "husky install", - "postinstall": "rimraf node_modules/prosemirror-view/dist/index.d.ts && patch-package", + "postinstall": "rimraf node_modules/prosemirror-view/dist/index.d.ts && yarn patch-package", "heroku-postbuild": "yarn build && yarn db:migrate", "db:create-migration": "sequelize migration:create", "db:create": "sequelize db:create", @@ -147,6 +147,7 @@ "nodemailer": "^6.6.1", "outline-icons": "^1.46.0", "oy-vey": "^0.12.0", + "patch-package": "^6.5.1", "passport": "^0.6.0", "passport-google-oauth2": "^0.2.0", "passport-oauth2": "^1.6.1", @@ -337,7 +338,6 @@ "jest-fetch-mock": "^3.0.3", "lint-staged": "^13.1.0", "nodemon": "^2.0.20", - "patch-package": "^6.5.1", "postinstall-postinstall": "^2.1.0", "prettier": "^2.0.5", "react-refresh": "^0.14.0",