Skip to content

Commit

Permalink
build: reduce image size
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Jun 28, 2023
1 parent ba28ca8 commit bcdb42c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
yarnPath: .yarn/releases/yarn-3.6.0.cjs
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.0.cjs
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ COPY tailwind.config.cjs ./tailwind.config.cjs
RUN yarn cmd:server prisma generate
RUN yarn turbo run build

RUN yarn pinst --disable
RUN yarn workspaces focus --production --all

FROM node:18-alpine as runner
WORKDIR /paperplane

Expand Down Expand Up @@ -86,4 +89,4 @@ RUN chown -R paperplane:paperplane /paperplane/data
USER paperplane

# Start app
cmd yarn start
CMD yarn start
4 changes: 2 additions & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"ua-parser-js": "^1.0.35",
"winston": "^3.9.0",
"winston-daily-rotate-file": "^4.7.1",
"zip-lib": "^0.7.3"
"zip-lib": "^0.7.3",
"prisma": "^4.16.1"
},
"devDependencies": {
"@types/busboy": "^1.5.0",
Expand All @@ -57,7 +58,6 @@
"@types/pidusage": "^2.0.2",
"@types/ua-parser-js": "^0.7.36",
"eslint": "8.43.0",
"prisma": "^4.16.1",
"typescript": "^5.1.3"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.2.2",
"pinst": "^3.0.0",
"tailwindcss": "^3.3.2",
"turbo": "^1.10.6",
"typescript": "5.1.3"
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6843,6 +6843,7 @@ __metadata:
is-ci: ^3.0.1
lint-staged: ^13.2.2
next: ^13.4.7
pinst: ^3.0.0
prettier: ^2.8.8
react: 18.2.0
react-dom: ^18.2.0
Expand Down Expand Up @@ -6989,6 +6990,15 @@ __metadata:
languageName: node
linkType: hard

"pinst@npm:^3.0.0":
version: 3.0.0
resolution: "pinst@npm:3.0.0"
bin:
pinst: bin.js
checksum: 4ae48a6a60f79c37071233af51b4d91bfc85cfa3c12b66ccda60cdb642b4d14a4ab0cb3587afc55b1f6192cea1772a5e4822026a0d0d3528296edef00cc2d61f
languageName: node
linkType: hard

"pirates@npm:^4.0.1":
version: 4.0.5
resolution: "pirates@npm:4.0.5"
Expand Down

0 comments on commit bcdb42c

Please sign in to comment.