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

Reduce image size, copy with chown flag #852

Merged
merged 1 commit into from Jul 27, 2020
Merged

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Jul 24, 2020

This will reduce the image size by about 549.2M if it does break anything :)

@@ -35,25 +35,20 @@ RUN curl -L "https://github.com/replicatedhq/troubleshoot/releases/download/v0.9
mv /tmp/troubleshoot.so /lib/troubleshoot.so && \
rm -rf /tmp/*

RUN apt-get update && apt-get install -y --no-install-recommends \
curl ca-certificates \
Copy link
Member Author

Choose a reason for hiding this comment

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

this is also on line 11

COPY ./web/dist /web/dist
USER root
RUN chmod a+x /kotsadm
RUN chmod a+w /web/dist/*
Copy link
Member Author

Choose a reason for hiding this comment

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

why does this need write?

@emosbaugh emosbaugh merged commit efca5cd into master Jul 27, 2020
@emosbaugh emosbaugh deleted the reduce-image-size branch July 27, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants