Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Forsberg committed Apr 12, 2024
1 parent 8003fd2 commit 2dec080
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docker/dockerfiles/backend
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .docker/dockerfiles/frontend
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2dec080

Please sign in to comment.