Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: small room optimisation of the apps/api Dockerfile image #355

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Sanix-Darker
Copy link
Contributor

BEFORE & AFTER

Screenshot from 2024-07-03 12-59-54

0.45GB of difference.

@rafaelsideguide
Copy link
Collaborator

@Sanix-Darker feel free to assign me for reviewing when it's done!

@Sanix-Darker Sanix-Darker marked this pull request as ready for review July 7, 2024 12:02
@Sanix-Darker
Copy link
Contributor Author

Sanix-Darker commented Jul 7, 2024

@Sanix-Darker feel free to assign me for reviewing when it's done!

@rafaelsideguide it's ready to be reviewed... i don't have right to assign you...
You can make sure to test also everything on your side too.


FROM base
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y chromium chromium-sandbox && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickscamara do we need chromium-sandbox?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so.

@Sanix-Darker
Copy link
Contributor Author

Sanix-Darker commented Aug 2, 2024

Is there any other actions I need to make for this PR please ? @nickscamara

@nickscamara
Copy link
Member

@Sanix-Darker will look into it!

@rafaelsideguide
Copy link
Collaborator

Hey @Sanix-Darker, I encountered some errors while testing this PR. Here are the logs:

2024-08-12 18:08:59 node:internal/modules/cjs/loader:1148
2024-08-12 18:08:59   throw err;
2024-08-12 18:08:59   ^
2024-08-12 18:08:59 
2024-08-12 18:08:59 Error: Cannot find module '/app/pnpm'
2024-08-12 18:08:59     at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
2024-08-12 18:08:59     at Module._load (node:internal/modules/cjs/loader:986:27)
2024-08-12 18:08:59     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
2024-08-12 18:08:59     at node:internal/main/run_main_module:28:49 {
2024-08-12 18:08:59   code: 'MODULE_NOT_FOUND',
2024-08-12 18:08:59   requireStack: []
2024-08-12 18:08:59 }
2024-08-12 18:08:59 
2024-08-12 18:08:59 Node.js v20.16.0

I also wasn't able to test it on our staging environment. Could you help figure out how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants