[go: nahoru, domu]

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 2 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!

rm -rf /var/lib/apt/lists /var/cache/apt/archives
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app /app
COPY . ./
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copying the code here instead of line 6 like before, because, we don't need the whole source code to install all pnpm deps.

@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?

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.

None yet

3 participants