diff --git a/.docker/dockerfiles/backend b/.docker/dockerfiles/backend index 1ec92308..43b2fada 100755 --- a/.docker/dockerfiles/backend +++ b/.docker/dockerfiles/backend @@ -10,7 +10,7 @@ CMD ["yarn", "start:dev"] FROM develop AS build RUN npm run compile -RUN yarn workspaces focus --all --production +RUN SKIP_POSTINSTALL=true yarn workspaces focus --all --production FROM node:20-alpine AS prod ENV PORT=3000 diff --git a/.docker/dockerfiles/frontend b/.docker/dockerfiles/frontend index 18e04cab..f2b15a30 100755 --- a/.docker/dockerfiles/frontend +++ b/.docker/dockerfiles/frontend @@ -9,7 +9,7 @@ CMD ["yarn", "dev"] FROM develop AS build RUN npm run build -RUN yarn workspaces focus --all --production +RUN SKIP_POSTINSTALL=true yarn workspaces focus --all --production FROM nginx:1.18 AS prod WORKDIR /usr/share/nginx/html/ diff --git a/package.json b/package.json index fba2ac68..ea9f958a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "start:frontend": "cd packages/frontend && npm run dev", "start": "npm run support && concurrently \"npm run start:backend\" \"npm run start:frontend\" \"npm run nodemon\"", "support": "docker-compose up -d database", - "postinstall": "husky install" + "postinstall": "test \"$SKIP_POSTINSTALL\" = \"true\" || husky install" }, "devDependencies": { "@commitlint/cli": "^17.7.1",