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

Remove all intermediate files in same layers #635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ypnos
Copy link

@ypnos ypnos commented Aug 22, 2022

This MR is for #624

  • Remove untarred files that were previously missed by glob
  • Remove files in layer they originate from

This is in line with the approach in telegraf's Dockerfiles.

@@ -37,6 +37,7 @@ RUN set -eux && \
gpg --batch --verify influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz.asc influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \
tar xzf influxdb2-${INFLUXDB_VERSION}-linux-${ARCH}.tar.gz && \
cp influxdb2_linux_${ARCH}/influxd /usr/local/bin/influxd && \
rm -rf influxdb2-* && \
Copy link

Choose a reason for hiding this comment

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

I think it should also remove influxdb2_linux_${ARCH} here. 🙃

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the review. I'm braindead!

- Remove untarred files that were previously missed by glob
- Remove files in layer they originate from

This is in line with the approach in telegraf's Dockerfiles
@Hipska Hipska added the influxdb label Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants