Skip to content

Conversation

@bmonkman
Copy link
Contributor

No description provided.

upx --lzma /usr/local/bin/commit0

FROM alpine:edge
FROM alpine:3.10
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Edge is the dev version, we should pin to a stable version.

mv commit0 /usr/local/bin
RUN upx --lzma /usr/local/bin/*
mv commit0 /usr/local/bin && \
upx --lzma /usr/local/bin/commit0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Separating this into two steps means most of the time we only need to re-compress the commit0 binary, not the other stuff that never changes.

@@ -0,0 +1,7 @@
Dockerfile
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should make sure to make this file as strict as possible, otherwise all this stuff gets included in COPY . . and busts the cache for all sorts of changes to various files.

@bmonkman bmonkman merged commit 4fc10c3 into master Oct 23, 2019
@bmonkman bmonkman deleted the cleanup-dockerfile branch October 23, 2019 19:47
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.

3 participants